From ba72b8337db1430b5fc4d5dba1f5becbc4591f73 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 15 Sep 2026 15:32:27 +0000 Subject: [PATCH] Releasing version 3.96.0 --- CHANGELOG.md | 13 + 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 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 382 +++++------ 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-clusterhealth/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 +- .../src/main/java/com/oracle/bmc/Region.java | 130 +++- ...nfigFileAuthenticationDetailsProvider.java | 2 +- ...ederationAuthenticationDetailProvider.java | 4 +- .../test/java/com/oracle/bmc/RegionTest.java | 132 +++- 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-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- .../databasemigration/DatabaseMigration.java | 88 +++ .../DatabaseMigrationAsync.java | 90 +++ .../DatabaseMigrationAsyncClient.java | 226 +++++++ .../DatabaseMigrationClient.java | 209 ++++++ .../DatabaseMigrationPaginators.java | 402 +++++++++++ .../DatabaseMigrationWaiters.java | 117 ++++ .../model/CloneOracleMigrationSettings.java | 84 +++ ...OracleOfflineLogicalMigrationSettings.java | 102 +++ ...eOracleOnlineLogicalMigrationSettings.java | 147 ++++ ...eOracleOnlineStandbyMigrationSettings.java | 192 ++++++ .../model/CreateOracleMigrationDetails.java | 32 +- .../model/CreateOracleMigrationSettings.java | 84 +++ ...OracleOfflineLogicalMigrationSettings.java | 377 +++++++++++ ...eOracleOnlineLogicalMigrationSettings.java | 473 +++++++++++++ ...eOracleOnlineStandbyMigrationSettings.java | 518 ++++++++++++++ .../model/DataVerificationDetail.java | 464 +++++++++++++ ...ataVerificationObjectStatusCollection.java | 171 +++++ .../DataVerificationObjectStatusSummary.java | 172 +++++ ...VerificationObjectTypeCountCollection.java | 172 +++++ ...ataVerificationObjectTypeCountSummary.java | 190 ++++++ ...taVerificationTableRowCountCollection.java | 171 +++++ .../DataVerificationTableRowCountSummary.java | 211 ++++++ .../DefaultRunDataVerificationDetails.java | 101 +++ ...qlDataVerificationObjectStatusSummary.java | 194 ++++++ ...ataVerificationObjectTypeCountSummary.java | 277 ++++++++ ...lDataVerificationTableRowCountSummary.java | 288 ++++++++ .../model/MySqlDatabaseObjectTypes.java | 65 ++ .../model/OracleCloneMigrationDetails.java | 32 +- ...leDataVerificationObjectStatusSummary.java | 194 ++++++ ...ataVerificationObjectTypeCountSummary.java | 277 ++++++++ ...eDataVerificationTableRowCountSummary.java | 288 ++++++++ .../model/OracleDatabaseObjectTypes.java | 84 +++ .../model/OracleMigration.java | 32 +- .../model/OracleMigrationMethods.java | 54 ++ .../model/OracleMigrationSettings.java | 84 +++ .../model/OracleMigrationSettingsSummary.java | 84 +++ .../model/OracleMigrationSummary.java | 32 +- ...OracleOfflineLogicalMigrationSettings.java | 231 +++++++ ...fflineLogicalMigrationSettingsSummary.java | 103 +++ .../OracleOnlineLogicalMigrationSettings.java | 327 +++++++++ ...OnlineLogicalMigrationSettingsSummary.java | 148 ++++ .../OracleOnlineStandbyMigrationSettings.java | 372 ++++++++++ ...OnlineStandbyMigrationSettingsSummary.java | 193 ++++++ .../model/RunDataVerificationDetails.java | 116 ++++ .../model/UpdateOracleMigrationDetails.java | 32 +- .../model/UpdateOracleMigrationSettings.java | 84 +++ ...OracleOfflineLogicalMigrationSettings.java | 233 +++++++ ...eOracleOnlineLogicalMigrationSettings.java | 329 +++++++++ ...eOracleOnlineStandbyMigrationSettings.java | 374 +++++++++++ .../GetDataVerificationDetailRequest.java | 246 +++++++ ...DataVerificationObjectStatusesRequest.java | 633 ++++++++++++++++++ ...taVerificationObjectTypeCountsRequest.java | 610 +++++++++++++++++ ...DataVerificationTableRowCountsRequest.java | 588 ++++++++++++++++ .../requests/RunDataVerificationRequest.java | 364 ++++++++++ .../GetDataVerificationDetailResponse.java | 218 ++++++ ...ataVerificationObjectStatusesResponse.java | 240 +++++++ ...aVerificationObjectTypeCountsResponse.java | 242 +++++++ ...ataVerificationTableRowCountsResponse.java | 240 +++++++ .../RunDataVerificationResponse.java | 217 ++++++ .../reflect-config.json | 457 +++++++++++++ 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 +- .../internal/DecryptionHandler.java | 120 +++- .../internal/DecryptionHandlerTest.java | 361 +++++++++- 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 +- bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- 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-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 +- .../main/java/com/oracle/bmc/ocvp/Sddc.java | 33 + .../java/com/oracle/bmc/ocvp/SddcAsync.java | 34 + .../com/oracle/bmc/ocvp/SddcAsyncClient.java | 77 +++ .../java/com/oracle/bmc/ocvp/SddcClient.java | 71 ++ ...nerateVmwareBinaryDownloadInfoDetails.java | 139 ++++ .../oracle/bmc/ocvp/model/VmwareBinary.java | 239 +++++++ .../ocvp/model/VmwareBinaryCollection.java | 133 ++++ .../ocvp/model/VmwareBinaryDownloadInfo.java | 225 +++++++ ...nerateVmwareBinaryDownloadInfoRequest.java | 335 +++++++++ .../RetrieveVmwareBinariesRequest.java | 347 ++++++++++ ...erateVmwareBinaryDownloadInfoResponse.java | 183 +++++ .../RetrieveVmwareBinariesResponse.java | 227 +++++++ .../oci-java-sdk-ocvp/reflect-config.json | 56 ++ 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 +- .../com/oracle/bmc/psql/model/Backup.java | 38 ++ .../bmc/psql/model/BackupCopyDetails.java | 45 +- .../bmc/psql/model/BackupCopyPolicy.java | 45 +- .../model/OciOptimizedStorageDetails.java | 21 +- .../oracle/bmc/psql/model/StorageDetails.java | 26 +- .../model/UpdateStorageDetailsParams.java | 53 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- 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 +- .../oracle/bmc/self/PartnerIntegeration.java | 55 +- .../bmc/self/PartnerIntegerationAsync.java | 58 +- .../self/PartnerIntegerationAsyncClient.java | 129 ++++ .../bmc/self/PartnerIntegerationClient.java | 117 ++++ .../self/PartnerIntegerationPaginators.java | 126 ++++ .../CreateSubscriptionUsageRecordDetails.java | 40 -- ...SubmitSubscriptionUsageRecordsDetails.java | 12 +- ...ActivateSubscriptionDeprecatedRequest.java | 368 ++++++++++ ...ListingSubscriptionsDeprecatedRequest.java | 404 +++++++++++ .../ResolveSubscriptionDeprecatedRequest.java | 339 ++++++++++ .../SubmitSubscriptionUsageBatchRequest.java | 8 +- ...ctivateSubscriptionDeprecatedResponse.java | 216 ++++++ ...istingSubscriptionsDeprecatedResponse.java | 236 +++++++ ...ResolveSubscriptionDeprecatedResponse.java | 214 ++++++ 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 | 2 +- 304 files changed, 19288 insertions(+), 732 deletions(-) create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index e999d55a060..758c62ed7a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.96.0 - 2026-09-15 +### Added +- Support for higher usage submission limits for metered SaaS listings and legacy subscription endpoints in the Service Enablement Lifecycle Framework service +- Support for customer-managed encryption keys for database systems and cross-region backup copies in the PostgreSQL service +- Support for listing available VMware binaries and generating download links in the Oracle Cloud VMware Solution service +- Support for data verification using database object counts, object statuses, and estimated table row counts in the Database Migration service +- Support for settings specific to online logical, offline logical, and online standby Oracle migrations in the Database Migration service   + +### Breaking Changes +- Method `public java.lang.String getUsageRecordId()` has been removed from the model `com.oracle.bmc.self.model.CreateSubscriptionUsageRecordDetails` in the Service Enablement Lifecycle Framework service +- Client-side decryption using `KmsMasterKeyProvider(KmsMasterKey)` now rejects encrypted blobs whose master key ID, vault ID, or region differs from the configured key. To decrypt data encrypted with different KMS keys, use `KmsMasterKeyProvider(BasicAuthenticationDetailsProvider)`. +- Client-side decryption using `KmsMasterKeyProvider(BasicAuthenticationDetailsProvider)` now requires the region to be known independently of the encrypted blob through built-in SDK definitions, `Region.register(...)`, supported region metadata configuration, opted-in Instance Metadata Service (IMDS), or an exact region match on `ConfigFileAuthenticationDetailsProvider` or `SessionTokenAuthenticationDetailsProvider`. A region resolved only through implicit OC1 or `OCI_DEFAULT_REALM` fallback is rejected. If a region is not yet included in this SDK release, register it or supply region metadata before decrypting. + ## 3.95.2 - 2026-09-08 ### Added - Support for configurable fault-domain preferences during provisioning in the Oracle Cloud VMware Solution service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 13920ad1936..4a3aa9b4906 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 3b025ef5c02..295e6363011 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.95.2 + 3.96.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 8aae1a42782..a52e2e2ec6e 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.95.2 + 3.96.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.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 9db6ce944b2..2729ff1d203 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.95.2 + 3.96.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.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 8ac20713730..06c6ca21f27 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.95.2 + 3.96.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.2 + 3.96.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 8c266e5c6d9..4c0f15393ee 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.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 860fcac7bea..c3c3cf27137 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.95.2 + 3.96.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.95.2 + 3.96.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.95.2 + 3.96.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.2 + 3.96.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index e5a228204a3..08222b4b456 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.95.2 + 3.96.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 860394b1d5e..173bb51d56d 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.95.2 + 3.96.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.95.2 + 3.96.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.95.2 + 3.96.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index efaeb94cf36..ef714bef574 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.95.2 + 3.96.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 6c7c36cff52..00714d786a4 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.95.2 + 3.96.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.2 + 3.96.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.2 + 3.96.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 8c2a4de3568..9e3a61ae372 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.95.2 + 3.96.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.2 + 3.96.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 35e0572a186..ac615487ce2 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index bb072bb83b2..9216ce48ec8 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 7bcd31c0fb8..9768bf7c642 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 937aeeaa93c..4b7f58355a2 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 680e997ca92..077ffea8e60 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index aa4e7624fb2..7c5daef3786 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 1d2ae21ec3b..cbb540dcb8e 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 800775657ea..cc3519da82d 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index e3c3a0a6f89..2a856794cc8 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index 9b22c081dd2..a7c822b1dc6 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index c251bf30c6d..7f81ae80e40 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index d71aeb5628f..df44ddf533b 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index e5eb6bf23cd..9e13be921d1 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 81912d5b646..96c25f68bac 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 1b65196a2e5..aa99d1026e6 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index b2794217b7c..29d0e9b755a 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 4467a6d8005..4490ada9e00 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 028c5f9e5b4..a6f7b4c3f50 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 45ca4792b16..289885fc466 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 4e0882c90d9..f39efe776fb 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index d2ba4556751..c27cb43212b 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index bb3bfc52a14..9ddab633395 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 01e3145ea67..e03d079f7c2 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index f0a14f33336..40afb8cfeac 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 8848ed563dc..7659e64fbc6 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.95.2 + 3.96.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1135 +38,1135 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-ddfs - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabasev26 - 3.95.2 + 3.96.0 false com.oracle.oci.sdk oci-java-sdk-clusterhealth - 3.95.2 + 3.96.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 45712df24c5..3b0a6ff6f6c 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 717db03015f..6a368e0b330 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index b7a241c610b..0f53ba09edb 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index b9b3175191a..79965795be9 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 2111f8d0f74..17b4b257573 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index c3b7326f121..8315b42c61c 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index df29b982a47..07025152441 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index fd72de3333b..e57255fc67e 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 7b1d0b97ff2..c3aa6eeee4f 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-clusterhealth/pom.xml b/bmc-clusterhealth/pom.xml index 3ae997c0820..97242fc9cd8 100644 --- a/bmc-clusterhealth/pom.xml +++ b/bmc-clusterhealth/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-clusterhealth @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 8e825dadd94..09980589da9 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 03d97ea2f1f..814624356f1 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.95.2 + 3.96.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.95.2 + 3.96.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.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 b8ac65ef35e..352f8ce0818 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.95.2 + 3.96.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.95.2 + 3.96.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 999538d21ec..ddeb67f0fc4 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.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 4d4dcc1326f..d47e1f41dd7 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.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 71840e052af..70cef225337 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/Region.java b/bmc-common/src/main/java/com/oracle/bmc/Region.java index f98f54de1ef..28ff21b657e 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Region.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Region.java @@ -84,6 +84,10 @@ public final class Region implements Serializable, Comparable { // LinkedHashMap to ensure stable ordering of the registered regions private static final Map ALL_REGIONS = new LinkedHashMap<>(); + // Region IDs registered from an independent source for secure endpoint resolution. Access is + // guarded by the region lock. + private static final Set TRUSTED_REGION_IDS = new HashSet<>(); + private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(Region.class); private static volatile boolean hasUsedEnvVar = false; private static volatile boolean hasUsedConfigFile = false; @@ -599,6 +603,18 @@ public static Region register( @Nonnull final Realm realm, String regionCode, boolean isDeveloperToolConfigurationRegion) { + // Public registration is explicit, so it is trusted for secure endpoint resolution. + return register(regionId, realm, regionCode, isDeveloperToolConfigurationRegion, true); + } + + // The additional parameter records whether the region came from an independent source while + // leaving the public registration API unchanged. + private static Region register( + @Nonnull String regionId, + @Nonnull final Realm realm, + String regionCode, + boolean isDeveloperToolConfigurationRegion, + boolean isTrustedRegistration) { if (regionId == null) { throw new java.lang.NullPointerException("regionId is marked non-null but is null"); } @@ -615,7 +631,10 @@ public static Region register( readLock.lock(); try { region = getRegion(regionId, realm, isDeveloperToolConfigurationRegion); - if (region != null) { + if (region != null + && (isDeveloperToolConfigurationRegion + || !isTrustedRegistration + || TRUSTED_REGION_IDS.contains(region.getRegionId()))) { return region; } } finally { @@ -626,6 +645,9 @@ public static Region register( // Recheck if the region exists because another thread might have acquired lock. region = getRegion(regionId, realm, isDeveloperToolConfigurationRegion); if (region != null) { + if (!isDeveloperToolConfigurationRegion && isTrustedRegistration) { + TRUSTED_REGION_IDS.add(region.getRegionId()); + } return region; } if (regionCode != null) { @@ -634,11 +656,16 @@ public static Region register( regionCode = null; } } - return new Region( - regionId, - Optional.ofNullable(regionCode), - realm, - isDeveloperToolConfigurationRegion); + Region registeredRegion = + new Region( + regionId, + Optional.ofNullable(regionCode), + realm, + isDeveloperToolConfigurationRegion); + if (!isDeveloperToolConfigurationRegion && isTrustedRegistration) { + TRUSTED_REGION_IDS.add(regionId); + } + return registeredRegion; } finally { writeLock.unlock(); } @@ -680,13 +707,21 @@ private static Region getRegionFromMap( private static java.util.Optional maybeFromRegionCodeOrIdWithoutRegistering( String regionCodeOrId) { + // Preserve existing Region API behavior, including OCI_DEFAULT_REALM fallback regions. + return maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId, true); + } + + private static java.util.Optional maybeFromRegionCodeOrIdWithoutRegistering( + String regionCodeOrId, boolean includeDefaultRealmFallback) { readLock.lock(); try { return KNOWN_REGIONS.values().stream() .filter( r -> - r.getRegionCode().equalsIgnoreCase(regionCodeOrId) - || r.regionId.equalsIgnoreCase(regionCodeOrId)) + (r.getRegionCode().equalsIgnoreCase(regionCodeOrId) + || r.regionId.equalsIgnoreCase(regionCodeOrId)) + && (includeDefaultRealmFallback + || TRUSTED_REGION_IDS.contains(r.regionId))) .findAny(); } finally { readLock.unlock(); @@ -734,6 +769,12 @@ private static void registerAllRegions() { /** Implements decision tree to determine Region. */ private static Optional getRegionAndRegisterIfNecessary(String regionCodeOrId) { + // Preserve existing Region API behavior by enabling the OCI_DEFAULT_REALM fallback. + return getRegionAndRegisterIfNecessary(regionCodeOrId, true); + } + + private static Optional getRegionAndRegisterIfNecessary( + String regionCodeOrId, boolean includeDefaultRealmFallback) { if (regionCodeOrId.contains("_")) { regionCodeOrId = NameUtils.decanonicalizeFromEnumTypes(regionCodeOrId); @@ -749,6 +790,9 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod if (maybeRegion.isPresent()) { return maybeRegion; } else if (!DeveloperToolConfiguration.isDevToolConfigRegionCoexistEnabled()) { + if (!includeDefaultRealmFallback) { + return Optional.empty(); + } LOG.error( "The region '{}' you're targeting is not declared in the '{}' DeveloperToolConfiguration configuration file. Please check if this is the correct region you're targeting or contact the '{}' cloud provider for help. If you want to target both OCI regions and '{}' regions, please set the OCI_PLC_REGION_COEXIST env var to true.", regionCodeOrId, @@ -762,14 +806,18 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod } } - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeDefaultRealmFallback); if (maybeRegion.isPresent()) { return maybeRegion; // already known } if (!hasUsedConfigFile) { readRegionConfigFile(); // registers region and sets hasUsedConfigFile = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeDefaultRealmFallback); if (maybeRegion.isPresent()) { return maybeRegion; } @@ -777,7 +825,9 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod if (!hasUsedEnvVar) { readEnvVar(); // registers region and sets hasUsedEnvVar = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeDefaultRealmFallback); if (maybeRegion.isPresent()) { return maybeRegion; } @@ -786,13 +836,17 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod if (hasOptedForInstanceMetadataService && !hasUsedInstanceMetadataService) { registerFromInstanceMetadataService(); // registers region and sets // hasUsedInstanceMetadataService = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeDefaultRealmFallback); if (maybeRegion.isPresent()) { return maybeRegion; } } - if (defaultRealmEnvVar != null && !StringUtils.isBlank(defaultRealmEnvVar)) { + if (includeDefaultRealmFallback + && defaultRealmEnvVar != null + && !StringUtils.isBlank(defaultRealmEnvVar)) { registerRegionWithDefaultRealm(regionCodeOrId); maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); if (maybeRegion.isPresent()) { @@ -803,6 +857,53 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod return Optional.empty(); } + /** + * Returns a previously registered trusted region without loading region metadata from a file, + * environment variable, or the Instance Metadata Service (IMDS). + * + * @param regionCodeOrId The region code or ID. + * @return The trusted region, or empty if no matching region is registered. + */ + @InternalSdk + public static Optional resolveRegisteredRegion(String regionCodeOrId) { + if (regionCodeOrId.contains("_")) { + regionCodeOrId = NameUtils.decanonicalizeFromEnumTypes(regionCodeOrId); + } + + Optional maybeRegion = + maybeFromDevToolConfigRegionCodeOrIdWithoutRegistering(regionCodeOrId); + if (maybeRegion.isPresent()) { + return maybeRegion; + } + return maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId, false); + } + + /** + * Resolves a trusted region without using the {@code OCI_DEFAULT_REALM} fallback. + * + * @param regionCodeOrId The region code or ID. + * @return The trusted region, or empty if no matching region can be resolved. + */ + @InternalSdk + public static Optional resolveRegionWithoutDefaultRealmFallback(String regionCodeOrId) { + return getRegionAndRegisterIfNecessary(regionCodeOrId, false); + } + + /** + * Registers a region using the configuration provider's legacy OC1 fallback. The region remains + * available to normal SDK clients but is not independently trusted for secure endpoint + * resolution. + * + * @param regionId The region ID from the SDK configuration. + * @param realm The realm used by the configuration provider's fallback. + * @return The registered region (or existing one if found). + */ + @InternalSdk + public static Region registerFromConfigFileFallback( + @Nonnull String regionId, @Nonnull final Realm realm) { + return register(regionId, realm, null, false, false); + } + /** Registers region and sets envVarUsed status to true. */ private static void readEnvVar() { final String envVar = System.getenv(OCI_REGION_METADATA_ENV_VAR_NAME); @@ -837,7 +938,8 @@ private static void registerRegionWithDefaultRealm(String regionId) { regionId, trimmedDefaultRealm); if (defaultRealmFromEnvVar != null) { - register(regionId, defaultRealmFromEnvVar); + // Keep fallback-created regions out of trusted endpoint resolution. + register(regionId, defaultRealmFromEnvVar, null, false, false); } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java b/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java index 25541e2a4d0..7a24e0f703f 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java @@ -114,7 +114,7 @@ public static Region getRegionFromConfigFile(ConfigFile configFile) { regionId, e); // Proceed by assuming the region id in the config file belongs to OC1 realm. - region = Region.register(regionId, Realm.OC1); + region = Region.registerFromConfigFileFallback(regionId, Realm.OC1); } } else { LOG.info( diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/WorkloadIdentityFederationAuthenticationDetailProvider.java b/bmc-common/src/main/java/com/oracle/bmc/auth/WorkloadIdentityFederationAuthenticationDetailProvider.java index 615a97bb2a6..dc6d5acff3b 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/WorkloadIdentityFederationAuthenticationDetailProvider.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/WorkloadIdentityFederationAuthenticationDetailProvider.java @@ -229,10 +229,10 @@ public WorkloadIdentityFederationAuthenticationDetailProviderBuilder clientCrede } if (!isBase64Encoded(clientCredential)) { this.clientCredential = base64Encode(clientCredential); - LOG.debug("Client Credential (base64 encoded): {}", this.clientCredential); + LOG.debug("Client credential configured (Base64 encoded)"); } else { this.clientCredential = clientCredential; - LOG.debug("Client Credential (already base64 encoded): {}", this.clientCredential); + LOG.debug("Client credential configured (already Base64 encoded)"); } return this; } diff --git a/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java b/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java index e1760a24f88..425554f3e04 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java @@ -4,6 +4,7 @@ */ package com.oracle.bmc; +import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -26,6 +27,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; import com.oracle.bmc.helper.EnvironmentVariablesHelper; import com.oracle.bmc.model.RegionSchema; import com.oracle.bmc.model.internal.JsonConverter; @@ -56,15 +58,15 @@ public class RegionTest { .build(); private static final String REGION_ID_WITH_DOT = "some.customerdomain.com"; + private static final String OCI_REGION_METADATA_VALUE = + "{ \"realmKey\" : \"UCX\",\"realmDomainComponent\" : \"oracle-foobar.com\",\"regionKey\" : \"ABV\",\"regionIdentifier\" : \"us-abv-1\"}"; @BeforeClass public static void init() throws Exception { Map newEnvMap = new HashMap<>(); - String regionBlob = - "{ \"realmKey\" : \"UCX\",\"realmDomainComponent\" : \"oracle-foobar.com\",\"regionKey\" : \"ABV\",\"regionIdentifier\" : \"us-abv-1\"}"; - newEnvMap.put("OCI_REGION_METADATA", regionBlob); + newEnvMap.put("OCI_REGION_METADATA", OCI_REGION_METADATA_VALUE); EnvironmentVariablesHelper.setEnvironmentVariable(newEnvMap); Region.resetDeveloperToolConfiguration(); } @@ -75,6 +77,128 @@ public void reset() { Region.skipInstanceMetadataService(); } + @Test + public void secureRegionLookupAcceptsBuiltInRegionShortName() { + assertSame(Region.US_PHOENIX_1, Region.resolveRegisteredRegion("phx").get()); + } + + @Test + public void secureRegionLookupAcceptsGovernmentRegion() { + assertSame( + Region.US_GOV_ASHBURN_1, + Region.resolveRegionWithoutDefaultRealmFallback("us-gov-ashburn-1").get()); + } + + @Test + public void secureRegionLookupAcceptsRegionFromEnvironmentMetadata() { + assertEquals( + "us-abv-1", + Region.resolveRegionWithoutDefaultRealmFallback("ABV").get().getRegionId()); + } + + @Test + public void secureRegionLookupAcceptsExplicitlyRegisteredPrivateRegion() { + Region registeredRegion = Region.register("private.customer.example.com", Realm.OC1); + + assertSame( + registeredRegion, + Region.resolveRegionWithoutDefaultRealmFallback("private.customer.example.com") + .get()); + } + + @Test + public void secureRegionLookupRejectsUnknownPrivateRegion() { + assertFalse( + Region.resolveRegionWithoutDefaultRealmFallback("attacker.example.com") + .isPresent()); + } + + @Test + public void secureRegionLookupRejectsRegionCreatedOnlyByDefaultRealmFallback() { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "untrusted-default-realm-region"; + try { + Region.defaultRealmEnvVar = "oraclevaporcloud.space"; + assertNotNull(Region.fromRegionId(regionId)); + + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + + @Test + public void explicitRegistrationMakesFallbackRegionTrusted() { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "explicitly-registered-default-realm-region"; + try { + Region.defaultRealmEnvVar = "oraclevaporcloud.space"; + Region fallbackRegion = Region.fromRegionId(regionId); + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + + assertSame(fallbackRegion, Region.register(regionId, fallbackRegion.getRealm())); + assertSame( + fallbackRegion, + Region.resolveRegionWithoutDefaultRealmFallback(regionId).get()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + + @Test + public void secureRegionLookupRejectsRegionCreatedOnlyByConfigFileOc1Fallback() + throws IOException { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "config-only.private.example.com"; + try { + Region.defaultRealmEnvVar = null; + ConfigFileReader.ConfigFile configFile = + ConfigFileReader.parse( + new ByteArrayInputStream( + ("[DEFAULT]\nregion=" + regionId) + .getBytes(StandardCharsets.UTF_8)), + null); + + Region configuredRegion = + ConfigFileAuthenticationDetailsProvider.getRegionFromConfigFile(configFile); + + assertSame(configuredRegion, Region.fromRegionId(regionId)); + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + + @Test + public void secureRegionLookupDoesNotConfuseDeveloperToolRegionWithSameNamedFallback() + throws Exception { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "fallback-and-developer-tool.example.com"; + try { + Region.defaultRealmEnvVar = "oraclevaporcloud.space"; + Region.fromRegionId(regionId); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + + Region developerToolRegion = + Region.register( + regionId, + Realm.register( + "DEVELOPER_TOOL_COLLISION", "developer-tool.example.com", true), + null, + true); + assertSame(developerToolRegion, Region.resolveRegisteredRegion(regionId).get()); + + Region.resetDeveloperToolConfiguration(); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + } finally { + Map restoredEnv = new HashMap<>(); + restoredEnv.put("OCI_REGION_METADATA", OCI_REGION_METADATA_VALUE); + EnvironmentVariablesHelper.setEnvironmentVariable(restoredEnv); + Region.resetDeveloperToolConfiguration(); + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + @Test public void testAllRegions() { try { @@ -391,7 +515,7 @@ public void testExistingDuplicateEnv() throws Exception { int count = Region.values().length; Region.fromRegionCodeOrId("ABV"); int afterCheckEnvCount = Region.values().length; - assertSame(count, afterCheckEnvCount); + assertEquals(count, afterCheckEnvCount); } @Test(expected = IllegalArgumentException.class) diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 7ee0735f010..b44f63357fd 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index eb3dbffcb3a..4a761ac6b78 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index d66e9af8b70..bf653e32d02 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 1d047eb5ac8..d9594aca63f 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index e768faade3c..987d8beac14 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index a7daef3081c..b4de82ac8d8 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.2 + 3.96.0 diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index e93d26ebabf..3bfe4f6f3e7 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 60113189b88..a29420589b3 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 29ffb22b448..ae3facd328d 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.2 + 3.96.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index bc26dfa307a..193ba2725bb 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index d71c4868761..8acf2d4d8b3 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java index 0bf8021d945..e9ca1dbb0a6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java @@ -465,6 +465,23 @@ DeleteParameterFileVersionResponse deleteParameterFileVersion( */ GetConnectionResponse getConnection(GetConnectionRequest request); + /** + * Returns availability and report status information used by the Data Verification UI. + * + * @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 + * GetDataVerificationDetail API. + */ + GetDataVerificationDetailResponse getDataVerificationDetail( + GetDataVerificationDetailRequest request); + /** * Get a migration job. * @@ -704,6 +721,61 @@ ListAssessmentObjectTypesResponse listAssessmentObjectTypes( */ ListConnectionsResponse listConnections(ListConnectionsRequest request); + /** + * Lists per-object status comparison results for a migration. + * + *

The `objectType` filter is a database-specific string and is validated by the backend. + * + * @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 + * ListDataVerificationObjectStatuses API. + */ + ListDataVerificationObjectStatusesResponse listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request); + + /** + * Lists object type count comparison results for a migration. + * + *

The `objectType` filter is a database-specific string and is validated by the backend. + * + * @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 + * ListDataVerificationObjectTypeCounts API. + */ + ListDataVerificationObjectTypeCountsResponse listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request); + + /** + * Lists table row count comparison results for a migration. + * + * @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 + * ListDataVerificationTableRowCounts API. + */ + ListDataVerificationTableRowCountsResponse listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request); + /** * List supported Database Types, Sub-types and Versions. * @@ -1028,6 +1100,22 @@ PerformAssessorCheckActionResponse performAssessorCheckAction( */ RetrieveSupportedPhasesResponse retrieveSupportedPhases(RetrieveSupportedPhasesRequest request); + /** + * Runs Data Verification for a migration and returns the updated Data Verification summary. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use RunDataVerification + * API. + */ + RunDataVerificationResponse runDataVerification(RunDataVerificationRequest request); + /** * Start Migration job. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java index e89cb3a6812..012162c47a3 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java @@ -447,6 +447,22 @@ java.util.concurrent.Future getConnection( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns availability and report status information used by the Data Verification UI. + * + * @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 getDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + handler); + /** * Get a migration job. * @@ -682,6 +698,64 @@ java.util.concurrent.Future listConnections( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists per-object status comparison results for a migration. + * + *

The `objectType` filter is a database-specific string and is validated by the backend. + * + * @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 + listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse> + handler); + + /** + * Lists object type count comparison results for a migration. + * + *

The `objectType` filter is a database-specific string and is validated by the backend. + * + * @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 + listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse> + handler); + + /** + * Lists table row count comparison results for a migration. + * + * @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 + listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse> + handler); + /** * List supported Database Types, Sub-types and Versions. * @@ -1001,6 +1075,22 @@ java.util.concurrent.Future retrieveSupportedPh RetrieveSupportedPhasesRequest, RetrieveSupportedPhasesResponse> handler); + /** + * Runs Data Verification for a migration and returns the updated Data Verification summary. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future runDataVerification( + RunDataVerificationRequest request, + com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse> + handler); + /** * Start Migration job. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java index 5358e133935..98d7aeade59 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java @@ -992,6 +992,40 @@ public java.util.concurrent.Future getConnection( .callAsync(handler); } + @Override + public java.util.concurrent.Future getDataVerificationDetail( + GetDataVerificationDetailRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + handler) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + + return clientCall(request, GetDataVerificationDetailResponse::builder) + .logger(LOG, "getDataVerificationDetail") + .serviceDetails( + "DatabaseMigration", + "GetDataVerificationDetail", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationDetail/GetDataVerificationDetail") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDataVerificationDetailRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("detail") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasemigration.model.DataVerificationDetail.class, + GetDataVerificationDetailResponse.Builder::dataVerificationDetail) + .handleResponseHeaderString( + "opc-request-id", GetDataVerificationDetailResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetDataVerificationDetailResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getJob( GetJobRequest request, @@ -1539,6 +1573,160 @@ public java.util.concurrent.Future listConnections( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse> + handler) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationObjectStatusesResponse::builder) + .logger(LOG, "listDataVerificationObjectStatuses") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationObjectStatuses", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectStatusCollection/ListDataVerificationObjectStatuses") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationObjectStatusesRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("objectStatuses") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("owner", request.getOwner()) + .appendQueryParam("objectType", request.getObjectType()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("isMatch", request.getIsMatch()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection.class, + ListDataVerificationObjectStatusesResponse.Builder + ::dataVerificationObjectStatusCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationObjectStatusesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationObjectStatusesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse> + handler) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationObjectTypeCountsResponse::builder) + .logger(LOG, "listDataVerificationObjectTypeCounts") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationObjectTypeCounts", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectTypeCountCollection/ListDataVerificationObjectTypeCounts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationObjectTypeCountsRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("objectTypeCounts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("schemaName", request.getSchemaName()) + .appendQueryParam("objectType", request.getObjectType()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("minAbsDeltaPercent", request.getMinAbsDeltaPercent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection.class, + ListDataVerificationObjectTypeCountsResponse.Builder + ::dataVerificationObjectTypeCountCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationObjectTypeCountsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationObjectTypeCountsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse> + handler) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationTableRowCountsResponse::builder) + .logger(LOG, "listDataVerificationTableRowCounts") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationTableRowCounts", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationTableRowCountCollection/ListDataVerificationTableRowCounts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationTableRowCountsRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("tableRowCounts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("owner", request.getOwner()) + .appendQueryParam("tableName", request.getTableName()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("minAbsDeltaPercent", request.getMinAbsDeltaPercent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection.class, + ListDataVerificationTableRowCountsResponse.Builder + ::dataVerificationTableRowCountCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationTableRowCountsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationTableRowCountsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDatabaseConnectionType( @@ -2316,6 +2504,44 @@ public java.util.concurrent.Future retrieveSupp .callAsync(handler); } + @Override + public java.util.concurrent.Future runDataVerification( + RunDataVerificationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse> + handler) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull( + request.getRunDataVerificationDetails(), "runDataVerificationDetails is required"); + + return clientCall(request, RunDataVerificationResponse::builder) + .logger(LOG, "runDataVerification") + .serviceDetails( + "DatabaseMigration", + "RunDataVerification", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RunDataVerification") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RunDataVerificationRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("actions") + .appendPathParam("runDataVerification") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemigration.model.DataVerificationDetail.class, + RunDataVerificationResponse.Builder::dataVerificationDetail) + .handleResponseHeaderString( + "opc-request-id", RunDataVerificationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", RunDataVerificationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future startMigration( StartMigrationRequest request, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java index 5bcb1d271bd..37534a5f3b7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java @@ -945,6 +945,38 @@ public GetConnectionResponse getConnection(GetConnectionRequest request) { .callSync(); } + @Override + public GetDataVerificationDetailResponse getDataVerificationDetail( + GetDataVerificationDetailRequest request) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + + return clientCall(request, GetDataVerificationDetailResponse::builder) + .logger(LOG, "getDataVerificationDetail") + .serviceDetails( + "DatabaseMigration", + "GetDataVerificationDetail", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationDetail/GetDataVerificationDetail") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDataVerificationDetailRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("detail") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemigration.model.DataVerificationDetail.class, + GetDataVerificationDetailResponse.Builder::dataVerificationDetail) + .handleResponseHeaderString( + "opc-request-id", GetDataVerificationDetailResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetDataVerificationDetailResponse.Builder::etag) + .callSync(); + } + @Override public GetJobResponse getJob(GetJobRequest request) { @@ -1455,6 +1487,148 @@ public ListConnectionsResponse listConnections(ListConnectionsRequest request) { .callSync(); } + @Override + public ListDataVerificationObjectStatusesResponse listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationObjectStatusesResponse::builder) + .logger(LOG, "listDataVerificationObjectStatuses") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationObjectStatuses", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectStatusCollection/ListDataVerificationObjectStatuses") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationObjectStatusesRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("objectStatuses") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("owner", request.getOwner()) + .appendQueryParam("objectType", request.getObjectType()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("isMatch", request.getIsMatch()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection.class, + ListDataVerificationObjectStatusesResponse.Builder + ::dataVerificationObjectStatusCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationObjectStatusesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationObjectStatusesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDataVerificationObjectTypeCountsResponse listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationObjectTypeCountsResponse::builder) + .logger(LOG, "listDataVerificationObjectTypeCounts") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationObjectTypeCounts", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectTypeCountCollection/ListDataVerificationObjectTypeCounts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationObjectTypeCountsRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("objectTypeCounts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("schemaName", request.getSchemaName()) + .appendQueryParam("objectType", request.getObjectType()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("minAbsDeltaPercent", request.getMinAbsDeltaPercent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection.class, + ListDataVerificationObjectTypeCountsResponse.Builder + ::dataVerificationObjectTypeCountCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationObjectTypeCountsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationObjectTypeCountsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDataVerificationTableRowCountsResponse listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDataVerificationTableRowCountsResponse::builder) + .logger(LOG, "listDataVerificationTableRowCounts") + .serviceDetails( + "DatabaseMigration", + "ListDataVerificationTableRowCounts", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationTableRowCountCollection/ListDataVerificationTableRowCounts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataVerificationTableRowCountsRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("dataVerification") + .appendPathParam("tableRowCounts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("owner", request.getOwner()) + .appendQueryParam("tableName", request.getTableName()) + .appendQueryParam("filter", request.getFilter()) + .appendQueryParam("minAbsDeltaPercent", request.getMinAbsDeltaPercent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection.class, + ListDataVerificationTableRowCountsResponse.Builder + ::dataVerificationTableRowCountCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDataVerificationTableRowCountsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDataVerificationTableRowCountsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListDatabaseConnectionTypeResponse listDatabaseConnectionType( ListDatabaseConnectionTypeRequest request) { @@ -2178,6 +2352,41 @@ public RetrieveSupportedPhasesResponse retrieveSupportedPhases( .callSync(); } + @Override + public RunDataVerificationResponse runDataVerification(RunDataVerificationRequest request) { + + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Objects.requireNonNull( + request.getRunDataVerificationDetails(), "runDataVerificationDetails is required"); + + return clientCall(request, RunDataVerificationResponse::builder) + .logger(LOG, "runDataVerification") + .serviceDetails( + "DatabaseMigration", + "RunDataVerification", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RunDataVerification") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RunDataVerificationRequest::builder) + .basePath("/20230518") + .appendPathParam("migrations") + .appendPathParam(request.getMigrationId()) + .appendPathParam("actions") + .appendPathParam("runDataVerification") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasemigration.model.DataVerificationDetail.class, + RunDataVerificationResponse.Builder::dataVerificationDetail) + .handleResponseHeaderString( + "opc-request-id", RunDataVerificationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", RunDataVerificationResponse.Builder::etag) + .callSync(); + } + @Override public StartMigrationResponse startMigration(StartMigrationRequest request) { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java index 07ceb003369..6e1bf20d7aa 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java @@ -886,6 +886,408 @@ public ListConnectionsResponse apply(ListConnectionsRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listDataVerificationObjectStatuses 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 + listDataVerificationObjectStatusesResponseIterator( + final ListDataVerificationObjectStatusesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationObjectStatusesRequest.Builder, + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>( + new java.util.function.Supplier< + ListDataVerificationObjectStatusesRequest.Builder>() { + @Override + public ListDataVerificationObjectStatusesRequest.Builder get() { + return ListDataVerificationObjectStatusesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, String>() { + @Override + public String apply(ListDataVerificationObjectStatusesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder>, + ListDataVerificationObjectStatusesRequest>() { + @Override + public ListDataVerificationObjectStatusesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.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< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>() { + @Override + public ListDataVerificationObjectStatusesResponse apply( + ListDataVerificationObjectStatusesRequest request) { + return client.listDataVerificationObjectStatuses(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary} objects contained + * in responses from the listDataVerificationObjectStatuses 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.databasemigration.model.DataVerificationObjectStatusSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationObjectStatusesRecordIterator( + final ListDataVerificationObjectStatusesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationObjectStatusesRequest.Builder, + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse, + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary>( + new java.util.function.Supplier< + ListDataVerificationObjectStatusesRequest.Builder>() { + @Override + public ListDataVerificationObjectStatusesRequest.Builder get() { + return ListDataVerificationObjectStatusesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, String>() { + @Override + public String apply(ListDataVerificationObjectStatusesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder>, + ListDataVerificationObjectStatusesRequest>() { + @Override + public ListDataVerificationObjectStatusesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.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< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>() { + @Override + public ListDataVerificationObjectStatusesResponse apply( + ListDataVerificationObjectStatusesRequest request) { + return client.listDataVerificationObjectStatuses(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusSummary> + apply(ListDataVerificationObjectStatusesResponse response) { + return response.getDataVerificationObjectStatusCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDataVerificationObjectTypeCounts 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 + listDataVerificationObjectTypeCountsResponseIterator( + final ListDataVerificationObjectTypeCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationObjectTypeCountsRequest.Builder, + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>( + new java.util.function.Supplier< + ListDataVerificationObjectTypeCountsRequest.Builder>() { + @Override + public ListDataVerificationObjectTypeCountsRequest.Builder get() { + return ListDataVerificationObjectTypeCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, String>() { + @Override + public String apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder>, + ListDataVerificationObjectTypeCountsRequest>() { + @Override + public ListDataVerificationObjectTypeCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.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< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>() { + @Override + public ListDataVerificationObjectTypeCountsResponse apply( + ListDataVerificationObjectTypeCountsRequest request) { + return client.listDataVerificationObjectTypeCounts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary} objects + * contained in responses from the listDataVerificationObjectTypeCounts 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.databasemigration.model.DataVerificationObjectTypeCountSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationObjectTypeCountsRecordIterator( + final ListDataVerificationObjectTypeCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationObjectTypeCountsRequest.Builder, + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse, + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary>( + new java.util.function.Supplier< + ListDataVerificationObjectTypeCountsRequest.Builder>() { + @Override + public ListDataVerificationObjectTypeCountsRequest.Builder get() { + return ListDataVerificationObjectTypeCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, String>() { + @Override + public String apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder>, + ListDataVerificationObjectTypeCountsRequest>() { + @Override + public ListDataVerificationObjectTypeCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.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< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>() { + @Override + public ListDataVerificationObjectTypeCountsResponse apply( + ListDataVerificationObjectTypeCountsRequest request) { + return client.listDataVerificationObjectTypeCounts(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountSummary> + apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getDataVerificationObjectTypeCountCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDataVerificationTableRowCounts 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 + listDataVerificationTableRowCountsResponseIterator( + final ListDataVerificationTableRowCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationTableRowCountsRequest.Builder, + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>( + new java.util.function.Supplier< + ListDataVerificationTableRowCountsRequest.Builder>() { + @Override + public ListDataVerificationTableRowCountsRequest.Builder get() { + return ListDataVerificationTableRowCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, String>() { + @Override + public String apply(ListDataVerificationTableRowCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder>, + ListDataVerificationTableRowCountsRequest>() { + @Override + public ListDataVerificationTableRowCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.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< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>() { + @Override + public ListDataVerificationTableRowCountsResponse apply( + ListDataVerificationTableRowCountsRequest request) { + return client.listDataVerificationTableRowCounts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary} objects + * contained in responses from the listDataVerificationTableRowCounts 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.databasemigration.model.DataVerificationTableRowCountSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationTableRowCountsRecordIterator( + final ListDataVerificationTableRowCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationTableRowCountsRequest.Builder, + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse, + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary>( + new java.util.function.Supplier< + ListDataVerificationTableRowCountsRequest.Builder>() { + @Override + public ListDataVerificationTableRowCountsRequest.Builder get() { + return ListDataVerificationTableRowCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, String>() { + @Override + public String apply(ListDataVerificationTableRowCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder>, + ListDataVerificationTableRowCountsRequest>() { + @Override + public ListDataVerificationTableRowCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.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< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>() { + @Override + public ListDataVerificationTableRowCountsResponse apply( + ListDataVerificationTableRowCountsRequest request) { + return client.listDataVerificationTableRowCounts(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountSummary> + apply(ListDataVerificationTableRowCountsResponse response) { + return response.getDataVerificationTableRowCountCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listDatabaseConnectionType operation. This iterable will fetch more data from the server as diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java index 182b65ad1a1..c21d7f9c04c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java @@ -327,6 +327,123 @@ public boolean test(GetConnectionResponse 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< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.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 forDataVerificationDetail( + 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< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.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 forDataVerificationDetail( + 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< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.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 forDataVerificationDetail( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DataVerificationDetail. + private com.oracle.bmc.waiter.Waiter< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDataVerificationDetailRequest request, + final com.oracle.bmc.databasemigration.model.DataVerificationDetail + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.databasemigration.model.DataVerificationDetail + .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< + GetDataVerificationDetailRequest, + GetDataVerificationDetailResponse>() { + @Override + public GetDataVerificationDetailResponse apply( + GetDataVerificationDetailRequest request) { + return client.getDataVerificationDetail(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDataVerificationDetailResponse response) { + return targetStatesSet.contains( + response.getDataVerificationDetail().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java new file mode 100644 index 00000000000..f648cca6718 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** + * Discriminator-only base clone settings for Oracle migration methods.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = CloneOracleMigrationSettings.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CloneOracleMigrationSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CloneOracleMigrationSettings() { + 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("CloneOracleMigrationSettings("); + 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 CloneOracleMigrationSettings)) { + return false; + } + + CloneOracleMigrationSettings other = (CloneOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..03d68408b34 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,102 @@ +/** + * 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.databasemigration.model; + +/** + * Clone settings for an offline logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOfflineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CloneOracleOfflineLogicalMigrationSettings extends CloneOracleMigrationSettings { + @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 CloneOracleOfflineLogicalMigrationSettings build() { + CloneOracleOfflineLogicalMigrationSettings model = + new CloneOracleOfflineLogicalMigrationSettings(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOfflineLogicalMigrationSettings model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOfflineLogicalMigrationSettings() { + 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("CloneOracleOfflineLogicalMigrationSettings("); + 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 CloneOracleOfflineLogicalMigrationSettings)) { + return false; + } + + CloneOracleOfflineLogicalMigrationSettings other = + (CloneOracleOfflineLogicalMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..0628cb9b088 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.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.databasemigration.model; + +/** + * Clone settings for an online logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOnlineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CloneOracleOnlineLogicalMigrationSettings extends CloneOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CloneOracleOnlineLogicalMigrationSettings build() { + CloneOracleOnlineLogicalMigrationSettings model = + new CloneOracleOnlineLogicalMigrationSettings( + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOnlineLogicalMigrationSettings(String sourceContainerDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleOnlineLogicalMigrationSettings)) { + return false; + } + + CloneOracleOnlineLogicalMigrationSettings other = + (CloneOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..8823e7be237 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.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.databasemigration.model; + +/** + * Clone settings for an online standby Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOnlineStandbyMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CloneOracleOnlineStandbyMigrationSettings extends CloneOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CloneOracleOnlineStandbyMigrationSettings build() { + CloneOracleOnlineStandbyMigrationSettings model = + new CloneOracleOnlineStandbyMigrationSettings( + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOnlineStandbyMigrationSettings( + String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleOnlineStandbyMigrationSettings)) { + return false; + } + + CloneOracleOnlineStandbyMigrationSettings other = + (CloneOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java index 5ef1ba6d9ac..767fcb02b72 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Create Migration resource parameters.
+ * Create Migration resource parameters. Deprecated: The parent-level Oracle migration configuration + * properties on this model are deprecated. Use {@code migrationSettings} instead.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -109,6 +110,15 @@ public Builder assessmentId(String assessmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private CreateOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(CreateOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -276,6 +286,7 @@ public CreateOracleMigrationDetails build() { this.freeformTags, this.definedTags, this.assessmentId, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -322,6 +333,9 @@ public Builder copy(CreateOracleMigrationDetails model) { if (model.wasPropertyExplicitlySet("assessmentId")) { this.assessmentId(model.getAssessmentId()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -381,6 +395,7 @@ public CreateOracleMigrationDetails( java.util.Map freeformTags, java.util.Map> definedTags, String assessmentId, + CreateOracleMigrationSettings migrationSettings, CreateOracleDataTransferMediumDetails dataTransferMediumDetails, CreateOracleInitialLoadSettings initialLoadSettings, CreateOracleAdvisorSettings advisorSettings, @@ -402,6 +417,7 @@ public CreateOracleMigrationDetails( freeformTags, definedTags, assessmentId); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -415,6 +431,13 @@ public CreateOracleMigrationDetails( this.bulkIncludeExcludeData = bulkIncludeExcludeData; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final CreateOracleMigrationSettings migrationSettings; + + public CreateOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -553,6 +576,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateOracleMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -581,7 +605,8 @@ public boolean equals(Object o) { } CreateOracleMigrationDetails other = (CreateOracleMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -605,6 +630,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java new file mode 100644 index 00000000000..5927ed6680c --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** + * Discriminator-only base create settings for Oracle migration methods.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = CreateOracleMigrationSettings.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateOracleMigrationSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOracleMigrationSettings() { + 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("CreateOracleMigrationSettings("); + 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 CreateOracleMigrationSettings)) { + return false; + } + + CreateOracleMigrationSettings other = (CreateOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..bf829150ac8 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,377 @@ +/** + * 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.databasemigration.model; + +/** + * Create settings for an offline logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOfflineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleOfflineLogicalMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + */ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + * + * @param includeObjects the value to set + * @return this builder + */ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOfflineLogicalMigrationSettings build() { + CreateOracleOfflineLogicalMigrationSettings model = + new CreateOracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOfflineLogicalMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + java.util.List advancedParameters, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + */ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * + * @return the value + */ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOfflineLogicalMigrationSettings)) { + return false; + } + + CreateOracleOfflineLogicalMigrationSettings other = + (CreateOracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..0437f72b1e2 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,473 @@ +/** + * 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.databasemigration.model; + +/** + * Create settings for an online logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOnlineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleOnlineLogicalMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + */ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + * + * @param includeObjects the value to set + * @return this builder + */ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOnlineLogicalMigrationSettings build() { + CreateOracleOnlineLogicalMigrationSettings model = + new CreateOracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOnlineLogicalMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + CreateGoldenGateHubDetails hubDetails, + CreateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateOracleGgsDeploymentDetails ggsDetails; + + public CreateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + */ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * + * @return the value + */ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOnlineLogicalMigrationSettings)) { + return false; + } + + CreateOracleOnlineLogicalMigrationSettings other = + (CreateOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..25489b85c83 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java @@ -0,0 +1,518 @@ +/** + * 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.databasemigration.model; + +/** + * Create settings for an online standby Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOnlineStandbyMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleOnlineStandbyMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + */ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + * + * @param includeObjects the value to set + * @return this builder + */ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOnlineStandbyMigrationSettings build() { + CreateOracleOnlineStandbyMigrationSettings model = + new CreateOracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOnlineStandbyMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + CreateGoldenGateHubDetails hubDetails, + CreateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateOracleGgsDeploymentDetails ggsDetails; + + public CreateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + */ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * + * @return the value + */ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOnlineStandbyMigrationSettings)) { + return false; + } + + CreateOracleOnlineStandbyMigrationSettings other = + (CreateOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java new file mode 100644 index 00000000000..073eddce93a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java @@ -0,0 +1,464 @@ +/** + * 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.databasemigration.model; + +/** + * Summary/status information used to enable and drive the Data Verification UI.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataVerificationDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataVerificationDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "migrationId", + "lifecycleState", + "timeStarted", + "timeUpdated", + "timeCompleted", + "lifecycleDetails", + "timeCreated" + }) + public DataVerificationDetail( + String migrationId, + LifecycleState lifecycleState, + java.util.Date timeStarted, + java.util.Date timeUpdated, + java.util.Date timeCompleted, + String lifecycleDetails, + java.util.Date timeCreated) { + super(); + this.migrationId = migrationId; + this.lifecycleState = lifecycleState; + this.timeStarted = timeStarted; + this.timeUpdated = timeUpdated; + this.timeCompleted = timeCompleted; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("migrationId") + private String migrationId; + + /** + * The OCID of the resource being referenced. + * + * @param migrationId the value to set + * @return this builder + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + this.__explicitlySet__.add("migrationId"); + return this; + } + /** + * Overall lifecycle state of Data Verification generation for the migration. This is a + * single, feature-level state (all Data Verification reports are generated as one batch). + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Overall lifecycle state of Data Verification generation for the migration. This is a + * single, feature-level state (all Data Verification reports are generated as one batch). + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21: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; + } + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private java.util.Date timeCompleted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @param timeCompleted the value to set + * @return this builder + */ + public Builder timeCompleted(java.util.Date timeCompleted) { + this.timeCompleted = timeCompleted; + this.__explicitlySet__.add("timeCompleted"); + return this; + } + /** + * A human-readable string that provides more details about the current lifecycle state. + * + *

This field is intended to follow OCI patterns and may include an internal error code + * and message when {@code lifecycleState} is {@code FAILED} (for example, {@code DMS-xxxx: + * }). When {@code lifecycleState} is {@code SUCCEEDED}, this field may contain a + * non-failing disclaimer, such as unavailable table row-count comparisons caused by missing + * optimizer statistics. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A human-readable string that provides more details about the current lifecycle state. + * + *

This field is intended to follow OCI patterns and may include an internal error code + * and message when {@code lifecycleState} is {@code FAILED} (for example, {@code DMS-xxxx: + * }). When {@code lifecycleState} is {@code SUCCEEDED}, this field may contain a + * non-failing disclaimer, such as unavailable table row-count comparisons caused by missing + * optimizer statistics. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21: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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataVerificationDetail build() { + DataVerificationDetail model = + new DataVerificationDetail( + this.migrationId, + this.lifecycleState, + this.timeStarted, + this.timeUpdated, + this.timeCompleted, + this.lifecycleDetails, + this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataVerificationDetail model) { + if (model.wasPropertyExplicitlySet("migrationId")) { + this.migrationId(model.getMigrationId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeCompleted")) { + this.timeCompleted(model.getTimeCompleted()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("migrationId") + private final String migrationId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getMigrationId() { + return migrationId; + } + + /** + * Overall lifecycle state of Data Verification generation for the migration. This is a single, + * feature-level state (all Data Verification reports are generated as one batch). + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Overall lifecycle state of Data Verification generation for the migration. This is a single, + * feature-level state (all Data Verification reports are generated as one batch). + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Overall lifecycle state of Data Verification generation for the migration. This is a single, + * feature-level state (all Data Verification reports are generated as one batch). + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private final java.util.Date timeCompleted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeCompleted() { + return timeCompleted; + } + + /** + * A human-readable string that provides more details about the current lifecycle state. + * + *

This field is intended to follow OCI patterns and may include an internal error code and + * message when {@code lifecycleState} is {@code FAILED} (for example, {@code DMS-xxxx: + * }). When {@code lifecycleState} is {@code SUCCEEDED}, this field may contain a + * non-failing disclaimer, such as unavailable table row-count comparisons caused by missing + * optimizer statistics. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A human-readable string that provides more details about the current lifecycle state. + * + *

This field is intended to follow OCI patterns and may include an internal error code and + * message when {@code lifecycleState} is {@code FAILED} (for example, {@code DMS-xxxx: + * }). When {@code lifecycleState} is {@code SUCCEEDED}, this field may contain a + * non-failing disclaimer, such as unavailable table row-count comparisons caused by missing + * optimizer statistics. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationDetail("); + sb.append("super=").append(super.toString()); + sb.append("migrationId=").append(String.valueOf(this.migrationId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeCompleted=").append(String.valueOf(this.timeCompleted)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationDetail)) { + return false; + } + + DataVerificationDetail other = (DataVerificationDetail) o; + return java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeCompleted, other.timeCompleted) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeCompleted == null ? 43 : this.timeCompleted.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusCollection.java new file mode 100644 index 00000000000..eae236cc1e9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusCollection.java @@ -0,0 +1,171 @@ +/** + * 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.databasemigration.model; + +/** + * Results of an Object Status listing.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataVerificationObjectStatusCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataVerificationObjectStatusCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items", "totalItems"}) + public DataVerificationObjectStatusCollection( + java.util.List items, Integer totalItems) { + super(); + this.items = items; + this.totalItems = totalItems; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Items in collection. + * + * @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; + } + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private Integer totalItems; + + /** + * Total number of items matching the request. + * + * @param totalItems the value to set + * @return this builder + */ + public Builder totalItems(Integer totalItems) { + this.totalItems = totalItems; + this.__explicitlySet__.add("totalItems"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataVerificationObjectStatusCollection build() { + DataVerificationObjectStatusCollection model = + new DataVerificationObjectStatusCollection(this.items, this.totalItems); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataVerificationObjectStatusCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("totalItems")) { + this.totalItems(model.getTotalItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Items in collection. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private final Integer totalItems; + + /** + * Total number of items matching the request. + * + * @return the value + */ + public Integer getTotalItems() { + return totalItems; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationObjectStatusCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(", totalItems=").append(String.valueOf(this.totalItems)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationObjectStatusCollection)) { + return false; + } + + DataVerificationObjectStatusCollection other = (DataVerificationObjectStatusCollection) o; + return java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals(this.totalItems, other.totalItems) + && 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) + (this.totalItems == null ? 43 : this.totalItems.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusSummary.java new file mode 100644 index 00000000000..4139ff64283 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusSummary.java @@ -0,0 +1,172 @@ +/** + * 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.databasemigration.model; + +/** + * Per-object status comparison line.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = DataVerificationObjectStatusSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlDataVerificationObjectStatusSummary.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleDataVerificationObjectStatusSummary.class, + name = "ORACLE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DataVerificationObjectStatusSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"owner", "objectName", "statusInSource", "statusInTarget"}) + protected DataVerificationObjectStatusSummary( + String owner, String objectName, String statusInSource, String statusInTarget) { + super(); + this.owner = owner; + this.objectName = objectName; + this.statusInSource = statusInSource; + this.statusInTarget = statusInTarget; + } + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + */ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + * + * @return the value + */ + public String getOwner() { + return owner; + } + + /** Database object name. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * Database object name. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** Object status in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("statusInSource") + private final String statusInSource; + + /** + * Object status in source. + * + * @return the value + */ + public String getStatusInSource() { + return statusInSource; + } + + /** Object status in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("statusInTarget") + private final String statusInTarget; + + /** + * Object status in target. + * + * @return the value + */ + public String getStatusInTarget() { + return statusInTarget; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationObjectStatusSummary("); + sb.append("super=").append(super.toString()); + sb.append("owner=").append(String.valueOf(this.owner)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", statusInSource=").append(String.valueOf(this.statusInSource)); + sb.append(", statusInTarget=").append(String.valueOf(this.statusInTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationObjectStatusSummary)) { + return false; + } + + DataVerificationObjectStatusSummary other = (DataVerificationObjectStatusSummary) o; + return java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.statusInSource, other.statusInSource) + && java.util.Objects.equals(this.statusInTarget, other.statusInTarget) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = + (result * PRIME) + + (this.statusInSource == null ? 43 : this.statusInSource.hashCode()); + result = + (result * PRIME) + + (this.statusInTarget == null ? 43 : this.statusInTarget.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountCollection.java new file mode 100644 index 00000000000..bad155ed2cc --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountCollection.java @@ -0,0 +1,172 @@ +/** + * 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.databasemigration.model; + +/** + * Results of an Object Type Count Comparison listing.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataVerificationObjectTypeCountCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataVerificationObjectTypeCountCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items", "totalItems"}) + public DataVerificationObjectTypeCountCollection( + java.util.List items, Integer totalItems) { + super(); + this.items = items; + this.totalItems = totalItems; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Items in collection. + * + * @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; + } + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private Integer totalItems; + + /** + * Total number of items matching the request. + * + * @param totalItems the value to set + * @return this builder + */ + public Builder totalItems(Integer totalItems) { + this.totalItems = totalItems; + this.__explicitlySet__.add("totalItems"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataVerificationObjectTypeCountCollection build() { + DataVerificationObjectTypeCountCollection model = + new DataVerificationObjectTypeCountCollection(this.items, this.totalItems); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataVerificationObjectTypeCountCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("totalItems")) { + this.totalItems(model.getTotalItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Items in collection. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private final Integer totalItems; + + /** + * Total number of items matching the request. + * + * @return the value + */ + public Integer getTotalItems() { + return totalItems; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationObjectTypeCountCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(", totalItems=").append(String.valueOf(this.totalItems)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationObjectTypeCountCollection)) { + return false; + } + + DataVerificationObjectTypeCountCollection other = + (DataVerificationObjectTypeCountCollection) o; + return java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals(this.totalItems, other.totalItems) + && 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) + (this.totalItems == null ? 43 : this.totalItems.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountSummary.java new file mode 100644 index 00000000000..919910b79bf --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountSummary.java @@ -0,0 +1,190 @@ +/** + * 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.databasemigration.model; + +/** + * Object type count comparison summary line.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = DataVerificationObjectTypeCountSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlDataVerificationObjectTypeCountSummary.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleDataVerificationObjectTypeCountSummary.class, + name = "ORACLE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DataVerificationObjectTypeCountSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "schemaName", + "sourceObjectCount", + "targetObjectCount", + "deltaPercent" + }) + protected DataVerificationObjectTypeCountSummary( + String schemaName, + Integer sourceObjectCount, + Integer targetObjectCount, + Double deltaPercent) { + super(); + this.schemaName = schemaName; + this.sourceObjectCount = sourceObjectCount; + this.targetObjectCount = targetObjectCount; + this.deltaPercent = deltaPercent; + } + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** Number of objects in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceObjectCount") + private final Integer sourceObjectCount; + + /** + * Number of objects in source. + * + * @return the value + */ + public Integer getSourceObjectCount() { + return sourceObjectCount; + } + + /** Number of objects in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetObjectCount") + private final Integer targetObjectCount; + + /** + * Number of objects in target. + * + * @return the value + */ + public Integer getTargetObjectCount() { + return targetObjectCount; + } + + /** + * Percentage delta between source and target counts. This value is expected to be non-negative. + * + *

If a negative value is encountered, it indicates that the target has objects not present + * in the source, which should be treated as an inconsistency (i.e., a failed comparison/report + * result). + */ + @com.fasterxml.jackson.annotation.JsonProperty("deltaPercent") + private final Double deltaPercent; + + /** + * Percentage delta between source and target counts. This value is expected to be non-negative. + * + *

If a negative value is encountered, it indicates that the target has objects not present + * in the source, which should be treated as an inconsistency (i.e., a failed comparison/report + * result). + * + * @return the value + */ + public Double getDeltaPercent() { + return deltaPercent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationObjectTypeCountSummary("); + sb.append("super=").append(super.toString()); + sb.append("schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", sourceObjectCount=").append(String.valueOf(this.sourceObjectCount)); + sb.append(", targetObjectCount=").append(String.valueOf(this.targetObjectCount)); + sb.append(", deltaPercent=").append(String.valueOf(this.deltaPercent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationObjectTypeCountSummary)) { + return false; + } + + DataVerificationObjectTypeCountSummary other = (DataVerificationObjectTypeCountSummary) o; + return java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.sourceObjectCount, other.sourceObjectCount) + && java.util.Objects.equals(this.targetObjectCount, other.targetObjectCount) + && java.util.Objects.equals(this.deltaPercent, other.deltaPercent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = + (result * PRIME) + + (this.sourceObjectCount == null ? 43 : this.sourceObjectCount.hashCode()); + result = + (result * PRIME) + + (this.targetObjectCount == null ? 43 : this.targetObjectCount.hashCode()); + result = (result * PRIME) + (this.deltaPercent == null ? 43 : this.deltaPercent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountCollection.java new file mode 100644 index 00000000000..d85c04902f0 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountCollection.java @@ -0,0 +1,171 @@ +/** + * 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.databasemigration.model; + +/** + * Results of a Table Row Count Comparison listing.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataVerificationTableRowCountCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataVerificationTableRowCountCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items", "totalItems"}) + public DataVerificationTableRowCountCollection( + java.util.List items, Integer totalItems) { + super(); + this.items = items; + this.totalItems = totalItems; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Items in collection. + * + * @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; + } + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private Integer totalItems; + + /** + * Total number of items matching the request. + * + * @param totalItems the value to set + * @return this builder + */ + public Builder totalItems(Integer totalItems) { + this.totalItems = totalItems; + this.__explicitlySet__.add("totalItems"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataVerificationTableRowCountCollection build() { + DataVerificationTableRowCountCollection model = + new DataVerificationTableRowCountCollection(this.items, this.totalItems); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataVerificationTableRowCountCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("totalItems")) { + this.totalItems(model.getTotalItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Items in collection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Items in collection. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + /** Total number of items matching the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalItems") + private final Integer totalItems; + + /** + * Total number of items matching the request. + * + * @return the value + */ + public Integer getTotalItems() { + return totalItems; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationTableRowCountCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(", totalItems=").append(String.valueOf(this.totalItems)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationTableRowCountCollection)) { + return false; + } + + DataVerificationTableRowCountCollection other = (DataVerificationTableRowCountCollection) o; + return java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals(this.totalItems, other.totalItems) + && 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) + (this.totalItems == null ? 43 : this.totalItems.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountSummary.java new file mode 100644 index 00000000000..8a5ca527f9a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountSummary.java @@ -0,0 +1,211 @@ +/** + * 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.databasemigration.model; + +/** + * Table row count comparison result line.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = DataVerificationTableRowCountSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlDataVerificationTableRowCountSummary.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleDataVerificationTableRowCountSummary.class, + name = "ORACLE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DataVerificationTableRowCountSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "owner", + "tableName", + "sourceRowCount", + "targetRowCount", + "variancePercent" + }) + protected DataVerificationTableRowCountSummary( + String owner, + String tableName, + Integer sourceRowCount, + Integer targetRowCount, + Double variancePercent) { + super(); + this.owner = owner; + this.tableName = tableName; + this.sourceRowCount = sourceRowCount; + this.targetRowCount = targetRowCount; + this.variancePercent = variancePercent; + } + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + */ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private final String owner; + + /** + * Schema/owner name. + * + *

This field is omitted (null/empty depending on backend serialization) for database-wide + * object types that are not schema-scoped. + * + *

Oracle non-schema-scoped object types: USER, ROLE, PROFILE, TABLESPACE, DATABASE_LINK, + * CONTROLFILE, DATAFILE, REDO_LOG, DIRECTORY, LIBRARY, CONTEXT. + * + *

MySQL non-schema-scoped object types: USER, ROLE, SERVER, TABLESPACE, LOGFILE_GROUP. + * + * @return the value + */ + public String getOwner() { + return owner; + } + + /** Table name. */ + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private final String tableName; + + /** + * Table name. + * + * @return the value + */ + public String getTableName() { + return tableName; + } + + /** Row count in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceRowCount") + private final Integer sourceRowCount; + + /** + * Row count in source. + * + * @return the value + */ + public Integer getSourceRowCount() { + return sourceRowCount; + } + + /** Row count in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetRowCount") + private final Integer targetRowCount; + + /** + * Row count in target. + * + * @return the value + */ + public Integer getTargetRowCount() { + return targetRowCount; + } + + /** + * Percentage variance between source and target row counts. This value is expected to be + * non-negative. + * + *

A negative value indicates that the target has rows not present in the source, which + * should be treated as an inconsistency (i.e., a failed comparison/report result). + */ + @com.fasterxml.jackson.annotation.JsonProperty("variancePercent") + private final Double variancePercent; + + /** + * Percentage variance between source and target row counts. This value is expected to be + * non-negative. + * + *

A negative value indicates that the target has rows not present in the source, which + * should be treated as an inconsistency (i.e., a failed comparison/report result). + * + * @return the value + */ + public Double getVariancePercent() { + return variancePercent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString()); + sb.append("owner=").append(String.valueOf(this.owner)); + sb.append(", tableName=").append(String.valueOf(this.tableName)); + sb.append(", sourceRowCount=").append(String.valueOf(this.sourceRowCount)); + sb.append(", targetRowCount=").append(String.valueOf(this.targetRowCount)); + sb.append(", variancePercent=").append(String.valueOf(this.variancePercent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationTableRowCountSummary)) { + return false; + } + + DataVerificationTableRowCountSummary other = (DataVerificationTableRowCountSummary) o; + return java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.sourceRowCount, other.sourceRowCount) + && java.util.Objects.equals(this.targetRowCount, other.targetRowCount) + && java.util.Objects.equals(this.variancePercent, other.variancePercent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = + (result * PRIME) + + (this.sourceRowCount == null ? 43 : this.sourceRowCount.hashCode()); + result = + (result * PRIME) + + (this.targetRowCount == null ? 43 : this.targetRowCount.hashCode()); + result = + (result * PRIME) + + (this.variancePercent == null ? 43 : this.variancePercent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java new file mode 100644 index 00000000000..df21c88dbf6 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java @@ -0,0 +1,101 @@ +/** + * 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.databasemigration.model; + +/** + * Default (and currently only) Run Data Verification details. Use this type to run Data + * Verification with the service default options.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultRunDataVerificationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DefaultRunDataVerificationDetails extends RunDataVerificationDetails { + @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 DefaultRunDataVerificationDetails build() { + DefaultRunDataVerificationDetails model = new DefaultRunDataVerificationDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultRunDataVerificationDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultRunDataVerificationDetails() { + 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("DefaultRunDataVerificationDetails("); + 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 DefaultRunDataVerificationDetails)) { + return false; + } + + DefaultRunDataVerificationDetails other = (DefaultRunDataVerificationDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java new file mode 100644 index 00000000000..0dfe8aad31c --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java @@ -0,0 +1,194 @@ +/** + * 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.databasemigration.model; + +/** + * Per-object status comparison line for MySQL migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationObjectStatusSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDataVerificationObjectStatusSummary + extends DataVerificationObjectStatusSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInSource") + private String statusInSource; + + public Builder statusInSource(String statusInSource) { + this.statusInSource = statusInSource; + this.__explicitlySet__.add("statusInSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInTarget") + private String statusInTarget; + + public Builder statusInTarget(String statusInTarget) { + this.statusInTarget = statusInTarget; + this.__explicitlySet__.add("statusInTarget"); + return this; + } + /** MySQL database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(MySqlDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationObjectStatusSummary build() { + MySqlDataVerificationObjectStatusSummary model = + new MySqlDataVerificationObjectStatusSummary( + this.owner, + this.objectName, + this.statusInSource, + this.statusInTarget, + this.objectType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationObjectStatusSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("statusInSource")) { + this.statusInSource(model.getStatusInSource()); + } + if (model.wasPropertyExplicitlySet("statusInTarget")) { + this.statusInTarget(model.getStatusInTarget()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationObjectStatusSummary( + String owner, + String objectName, + String statusInSource, + String statusInTarget, + MySqlDatabaseObjectTypes objectType) { + super(owner, objectName, statusInSource, statusInTarget); + this.objectType = objectType; + } + + /** MySQL database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * + * @return the value + */ + public MySqlDatabaseObjectTypes getObjectType() { + return objectType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationObjectStatusSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationObjectStatusSummary)) { + return false; + } + + MySqlDataVerificationObjectStatusSummary other = + (MySqlDataVerificationObjectStatusSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java new file mode 100644 index 00000000000..3e5a2abe07b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java @@ -0,0 +1,277 @@ +/** + * 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.databasemigration.model; + +/** + * Object type count comparison summary line for MySQL migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationObjectTypeCountSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDataVerificationObjectTypeCountSummary + extends DataVerificationObjectTypeCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceObjectCount") + private Integer sourceObjectCount; + + public Builder sourceObjectCount(Integer sourceObjectCount) { + this.sourceObjectCount = sourceObjectCount; + this.__explicitlySet__.add("sourceObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetObjectCount") + private Integer targetObjectCount; + + public Builder targetObjectCount(Integer targetObjectCount) { + this.targetObjectCount = targetObjectCount; + this.__explicitlySet__.add("targetObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("deltaPercent") + private Double deltaPercent; + + public Builder deltaPercent(Double deltaPercent) { + this.deltaPercent = deltaPercent; + this.__explicitlySet__.add("deltaPercent"); + return this; + } + /** MySQL database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(MySqlDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** Number of invalid objects in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * + * @param sourceInvalidCount the value to set + * @return this builder + */ + public Builder sourceInvalidCount(Integer sourceInvalidCount) { + this.sourceInvalidCount = sourceInvalidCount; + this.__explicitlySet__.add("sourceInvalidCount"); + return this; + } + /** Number of invalid objects in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * + * @param targetInvalidCount the value to set + * @return this builder + */ + public Builder targetInvalidCount(Integer targetInvalidCount) { + this.targetInvalidCount = targetInvalidCount; + this.__explicitlySet__.add("targetInvalidCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationObjectTypeCountSummary build() { + MySqlDataVerificationObjectTypeCountSummary model = + new MySqlDataVerificationObjectTypeCountSummary( + this.schemaName, + this.sourceObjectCount, + this.targetObjectCount, + this.deltaPercent, + this.objectType, + this.sourceInvalidCount, + this.targetInvalidCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationObjectTypeCountSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("sourceObjectCount")) { + this.sourceObjectCount(model.getSourceObjectCount()); + } + if (model.wasPropertyExplicitlySet("targetObjectCount")) { + this.targetObjectCount(model.getTargetObjectCount()); + } + if (model.wasPropertyExplicitlySet("deltaPercent")) { + this.deltaPercent(model.getDeltaPercent()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("sourceInvalidCount")) { + this.sourceInvalidCount(model.getSourceInvalidCount()); + } + if (model.wasPropertyExplicitlySet("targetInvalidCount")) { + this.targetInvalidCount(model.getTargetInvalidCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationObjectTypeCountSummary( + String schemaName, + Integer sourceObjectCount, + Integer targetObjectCount, + Double deltaPercent, + MySqlDatabaseObjectTypes objectType, + Integer sourceInvalidCount, + Integer targetInvalidCount) { + super(schemaName, sourceObjectCount, targetObjectCount, deltaPercent); + this.objectType = objectType; + this.sourceInvalidCount = sourceInvalidCount; + this.targetInvalidCount = targetInvalidCount; + } + + /** MySQL database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * + * @return the value + */ + public MySqlDatabaseObjectTypes getObjectType() { + return objectType; + } + + /** Number of invalid objects in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private final Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * + * @return the value + */ + public Integer getSourceInvalidCount() { + return sourceInvalidCount; + } + + /** Number of invalid objects in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private final Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * + * @return the value + */ + public Integer getTargetInvalidCount() { + return targetInvalidCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationObjectTypeCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", sourceInvalidCount=").append(String.valueOf(this.sourceInvalidCount)); + sb.append(", targetInvalidCount=").append(String.valueOf(this.targetInvalidCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationObjectTypeCountSummary)) { + return false; + } + + MySqlDataVerificationObjectTypeCountSummary other = + (MySqlDataVerificationObjectTypeCountSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.sourceInvalidCount, other.sourceInvalidCount) + && java.util.Objects.equals(this.targetInvalidCount, other.targetInvalidCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.sourceInvalidCount == null + ? 43 + : this.sourceInvalidCount.hashCode()); + result = + (result * PRIME) + + (this.targetInvalidCount == null + ? 43 + : this.targetInvalidCount.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java new file mode 100644 index 00000000000..d6c960ddbce --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java @@ -0,0 +1,288 @@ +/** + * 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.databasemigration.model; + +/** + * Table row count comparison result line for MySQL migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationTableRowCountSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDataVerificationTableRowCountSummary + extends DataVerificationTableRowCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceRowCount") + private Integer sourceRowCount; + + public Builder sourceRowCount(Integer sourceRowCount) { + this.sourceRowCount = sourceRowCount; + this.__explicitlySet__.add("sourceRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetRowCount") + private Integer targetRowCount; + + public Builder targetRowCount(Integer targetRowCount) { + this.targetRowCount = targetRowCount; + this.__explicitlySet__.add("targetRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variancePercent") + private Double variancePercent; + + public Builder variancePercent(Double variancePercent) { + this.variancePercent = variancePercent; + this.__explicitlySet__.add("variancePercent"); + return this; + } + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @param timeLastSourceStatisticsCollection the value to set + * @return this builder + */ + public Builder timeLastSourceStatisticsCollection( + java.util.Date timeLastSourceStatisticsCollection) { + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.__explicitlySet__.add("timeLastSourceStatisticsCollection"); + return this; + } + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @param timeLastTargetStatisticsCollection the value to set + * @return this builder + */ + public Builder timeLastTargetStatisticsCollection( + java.util.Date timeLastTargetStatisticsCollection) { + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + this.__explicitlySet__.add("timeLastTargetStatisticsCollection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationTableRowCountSummary build() { + MySqlDataVerificationTableRowCountSummary model = + new MySqlDataVerificationTableRowCountSummary( + this.owner, + this.tableName, + this.sourceRowCount, + this.targetRowCount, + this.variancePercent, + this.timeLastSourceStatisticsCollection, + this.timeLastTargetStatisticsCollection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationTableRowCountSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("sourceRowCount")) { + this.sourceRowCount(model.getSourceRowCount()); + } + if (model.wasPropertyExplicitlySet("targetRowCount")) { + this.targetRowCount(model.getTargetRowCount()); + } + if (model.wasPropertyExplicitlySet("variancePercent")) { + this.variancePercent(model.getVariancePercent()); + } + if (model.wasPropertyExplicitlySet("timeLastSourceStatisticsCollection")) { + this.timeLastSourceStatisticsCollection( + model.getTimeLastSourceStatisticsCollection()); + } + if (model.wasPropertyExplicitlySet("timeLastTargetStatisticsCollection")) { + this.timeLastTargetStatisticsCollection( + model.getTimeLastTargetStatisticsCollection()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationTableRowCountSummary( + String owner, + String tableName, + Integer sourceRowCount, + Integer targetRowCount, + Double variancePercent, + java.util.Date timeLastSourceStatisticsCollection, + java.util.Date timeLastTargetStatisticsCollection) { + super(owner, tableName, sourceRowCount, targetRowCount, variancePercent); + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + } + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private final java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @return the value + */ + public java.util.Date getTimeLastSourceStatisticsCollection() { + return timeLastSourceStatisticsCollection; + } + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private final java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @return the value + */ + public java.util.Date getTimeLastTargetStatisticsCollection() { + return timeLastTargetStatisticsCollection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeLastSourceStatisticsCollection=") + .append(String.valueOf(this.timeLastSourceStatisticsCollection)); + sb.append(", timeLastTargetStatisticsCollection=") + .append(String.valueOf(this.timeLastTargetStatisticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationTableRowCountSummary)) { + return false; + } + + MySqlDataVerificationTableRowCountSummary other = + (MySqlDataVerificationTableRowCountSummary) o; + return java.util.Objects.equals( + this.timeLastSourceStatisticsCollection, + other.timeLastSourceStatisticsCollection) + && java.util.Objects.equals( + this.timeLastTargetStatisticsCollection, + other.timeLastTargetStatisticsCollection) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeLastSourceStatisticsCollection == null + ? 43 + : this.timeLastSourceStatisticsCollection.hashCode()); + result = + (result * PRIME) + + (this.timeLastTargetStatisticsCollection == null + ? 43 + : this.timeLastTargetStatisticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java new file mode 100644 index 00000000000..0b0c9dbcd44 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java @@ -0,0 +1,65 @@ +/** + * 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.databasemigration.model; + +/** MySQL database object types used by Data Verification. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum MySqlDatabaseObjectTypes implements com.oracle.bmc.http.internal.BmcEnum { + Table("TABLE"), + View("VIEW"), + Index("INDEX"), + Trigger("TRIGGER"), + Procedure("PROCEDURE"), + Function("FUNCTION"), + Event("EVENT"), + Database("DATABASE"), + Schema("SCHEMA"), + Tablespace("TABLESPACE"), + Server("SERVER"), + LogfileGroup("LOGFILE_GROUP"), + User("USER"), + Role("ROLE"), + + /** + * 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(MySqlDatabaseObjectTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlDatabaseObjectTypes v : MySqlDatabaseObjectTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlDatabaseObjectTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlDatabaseObjectTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlDatabaseObjectTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java index b648db23161..a0c8ebca346 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Clone Migration Summary
+ * Oracle Clone Migration details. Deprecated: The parent-level Oracle clone configuration + * properties on this model are deprecated. Use {@code migrationSettings} instead.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -90,6 +91,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private CloneOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(CloneOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") private String sourceContainerDatabaseConnectionId; @@ -135,6 +145,7 @@ public OracleCloneMigrationDetails build() { this.assessmentId, this.freeformTags, this.definedTags, + this.migrationSettings, this.sourceContainerDatabaseConnectionId, this.sourceStandbyDatabaseConnectionId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -166,6 +177,9 @@ public Builder copy(OracleCloneMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { this.sourceContainerDatabaseConnectionId( model.getSourceContainerDatabaseConnectionId()); @@ -196,6 +210,7 @@ public OracleCloneMigrationDetails( String assessmentId, java.util.Map freeformTags, java.util.Map> definedTags, + CloneOracleMigrationSettings migrationSettings, String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { super( @@ -206,10 +221,18 @@ public OracleCloneMigrationDetails( assessmentId, freeformTags, definedTags); + this.migrationSettings = migrationSettings; this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final CloneOracleMigrationSettings migrationSettings; + + public CloneOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") private final String sourceContainerDatabaseConnectionId; @@ -251,6 +274,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleCloneMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", sourceContainerDatabaseConnectionId=") .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", sourceStandbyDatabaseConnectionId=") @@ -269,7 +293,8 @@ public boolean equals(Object o) { } OracleCloneMigrationDetails other = (OracleCloneMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.sourceContainerDatabaseConnectionId, other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( @@ -282,6 +307,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.sourceContainerDatabaseConnectionId == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java new file mode 100644 index 00000000000..6204fa7720f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java @@ -0,0 +1,194 @@ +/** + * 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.databasemigration.model; + +/** + * Per-object status comparison line for Oracle migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationObjectStatusSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleDataVerificationObjectStatusSummary + extends DataVerificationObjectStatusSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInSource") + private String statusInSource; + + public Builder statusInSource(String statusInSource) { + this.statusInSource = statusInSource; + this.__explicitlySet__.add("statusInSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInTarget") + private String statusInTarget; + + public Builder statusInTarget(String statusInTarget) { + this.statusInTarget = statusInTarget; + this.__explicitlySet__.add("statusInTarget"); + return this; + } + /** Oracle database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(OracleDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationObjectStatusSummary build() { + OracleDataVerificationObjectStatusSummary model = + new OracleDataVerificationObjectStatusSummary( + this.owner, + this.objectName, + this.statusInSource, + this.statusInTarget, + this.objectType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationObjectStatusSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("statusInSource")) { + this.statusInSource(model.getStatusInSource()); + } + if (model.wasPropertyExplicitlySet("statusInTarget")) { + this.statusInTarget(model.getStatusInTarget()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationObjectStatusSummary( + String owner, + String objectName, + String statusInSource, + String statusInTarget, + OracleDatabaseObjectTypes objectType) { + super(owner, objectName, statusInSource, statusInTarget); + this.objectType = objectType; + } + + /** Oracle database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * + * @return the value + */ + public OracleDatabaseObjectTypes getObjectType() { + return objectType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationObjectStatusSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationObjectStatusSummary)) { + return false; + } + + OracleDataVerificationObjectStatusSummary other = + (OracleDataVerificationObjectStatusSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java new file mode 100644 index 00000000000..da2a6cba241 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java @@ -0,0 +1,277 @@ +/** + * 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.databasemigration.model; + +/** + * Object type count comparison summary line for Oracle migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationObjectTypeCountSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleDataVerificationObjectTypeCountSummary + extends DataVerificationObjectTypeCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceObjectCount") + private Integer sourceObjectCount; + + public Builder sourceObjectCount(Integer sourceObjectCount) { + this.sourceObjectCount = sourceObjectCount; + this.__explicitlySet__.add("sourceObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetObjectCount") + private Integer targetObjectCount; + + public Builder targetObjectCount(Integer targetObjectCount) { + this.targetObjectCount = targetObjectCount; + this.__explicitlySet__.add("targetObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("deltaPercent") + private Double deltaPercent; + + public Builder deltaPercent(Double deltaPercent) { + this.deltaPercent = deltaPercent; + this.__explicitlySet__.add("deltaPercent"); + return this; + } + /** Oracle database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(OracleDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** Number of invalid objects in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * + * @param sourceInvalidCount the value to set + * @return this builder + */ + public Builder sourceInvalidCount(Integer sourceInvalidCount) { + this.sourceInvalidCount = sourceInvalidCount; + this.__explicitlySet__.add("sourceInvalidCount"); + return this; + } + /** Number of invalid objects in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * + * @param targetInvalidCount the value to set + * @return this builder + */ + public Builder targetInvalidCount(Integer targetInvalidCount) { + this.targetInvalidCount = targetInvalidCount; + this.__explicitlySet__.add("targetInvalidCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationObjectTypeCountSummary build() { + OracleDataVerificationObjectTypeCountSummary model = + new OracleDataVerificationObjectTypeCountSummary( + this.schemaName, + this.sourceObjectCount, + this.targetObjectCount, + this.deltaPercent, + this.objectType, + this.sourceInvalidCount, + this.targetInvalidCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationObjectTypeCountSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("sourceObjectCount")) { + this.sourceObjectCount(model.getSourceObjectCount()); + } + if (model.wasPropertyExplicitlySet("targetObjectCount")) { + this.targetObjectCount(model.getTargetObjectCount()); + } + if (model.wasPropertyExplicitlySet("deltaPercent")) { + this.deltaPercent(model.getDeltaPercent()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("sourceInvalidCount")) { + this.sourceInvalidCount(model.getSourceInvalidCount()); + } + if (model.wasPropertyExplicitlySet("targetInvalidCount")) { + this.targetInvalidCount(model.getTargetInvalidCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationObjectTypeCountSummary( + String schemaName, + Integer sourceObjectCount, + Integer targetObjectCount, + Double deltaPercent, + OracleDatabaseObjectTypes objectType, + Integer sourceInvalidCount, + Integer targetInvalidCount) { + super(schemaName, sourceObjectCount, targetObjectCount, deltaPercent); + this.objectType = objectType; + this.sourceInvalidCount = sourceInvalidCount; + this.targetInvalidCount = targetInvalidCount; + } + + /** Oracle database object type. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * + * @return the value + */ + public OracleDatabaseObjectTypes getObjectType() { + return objectType; + } + + /** Number of invalid objects in source. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private final Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * + * @return the value + */ + public Integer getSourceInvalidCount() { + return sourceInvalidCount; + } + + /** Number of invalid objects in target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private final Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * + * @return the value + */ + public Integer getTargetInvalidCount() { + return targetInvalidCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationObjectTypeCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", sourceInvalidCount=").append(String.valueOf(this.sourceInvalidCount)); + sb.append(", targetInvalidCount=").append(String.valueOf(this.targetInvalidCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationObjectTypeCountSummary)) { + return false; + } + + OracleDataVerificationObjectTypeCountSummary other = + (OracleDataVerificationObjectTypeCountSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.sourceInvalidCount, other.sourceInvalidCount) + && java.util.Objects.equals(this.targetInvalidCount, other.targetInvalidCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.sourceInvalidCount == null + ? 43 + : this.sourceInvalidCount.hashCode()); + result = + (result * PRIME) + + (this.targetInvalidCount == null + ? 43 + : this.targetInvalidCount.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java new file mode 100644 index 00000000000..628df8e206b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java @@ -0,0 +1,288 @@ +/** + * 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.databasemigration.model; + +/** + * Table row count comparison result line for Oracle migrations.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationTableRowCountSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleDataVerificationTableRowCountSummary + extends DataVerificationTableRowCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceRowCount") + private Integer sourceRowCount; + + public Builder sourceRowCount(Integer sourceRowCount) { + this.sourceRowCount = sourceRowCount; + this.__explicitlySet__.add("sourceRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetRowCount") + private Integer targetRowCount; + + public Builder targetRowCount(Integer targetRowCount) { + this.targetRowCount = targetRowCount; + this.__explicitlySet__.add("targetRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variancePercent") + private Double variancePercent; + + public Builder variancePercent(Double variancePercent) { + this.variancePercent = variancePercent; + this.__explicitlySet__.add("variancePercent"); + return this; + } + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @param timeLastSourceStatisticsCollection the value to set + * @return this builder + */ + public Builder timeLastSourceStatisticsCollection( + java.util.Date timeLastSourceStatisticsCollection) { + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.__explicitlySet__.add("timeLastSourceStatisticsCollection"); + return this; + } + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @param timeLastTargetStatisticsCollection the value to set + * @return this builder + */ + public Builder timeLastTargetStatisticsCollection( + java.util.Date timeLastTargetStatisticsCollection) { + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + this.__explicitlySet__.add("timeLastTargetStatisticsCollection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationTableRowCountSummary build() { + OracleDataVerificationTableRowCountSummary model = + new OracleDataVerificationTableRowCountSummary( + this.owner, + this.tableName, + this.sourceRowCount, + this.targetRowCount, + this.variancePercent, + this.timeLastSourceStatisticsCollection, + this.timeLastTargetStatisticsCollection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationTableRowCountSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("sourceRowCount")) { + this.sourceRowCount(model.getSourceRowCount()); + } + if (model.wasPropertyExplicitlySet("targetRowCount")) { + this.targetRowCount(model.getTargetRowCount()); + } + if (model.wasPropertyExplicitlySet("variancePercent")) { + this.variancePercent(model.getVariancePercent()); + } + if (model.wasPropertyExplicitlySet("timeLastSourceStatisticsCollection")) { + this.timeLastSourceStatisticsCollection( + model.getTimeLastSourceStatisticsCollection()); + } + if (model.wasPropertyExplicitlySet("timeLastTargetStatisticsCollection")) { + this.timeLastTargetStatisticsCollection( + model.getTimeLastTargetStatisticsCollection()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationTableRowCountSummary( + String owner, + String tableName, + Integer sourceRowCount, + Integer targetRowCount, + Double variancePercent, + java.util.Date timeLastSourceStatisticsCollection, + java.util.Date timeLastTargetStatisticsCollection) { + super(owner, tableName, sourceRowCount, targetRowCount, variancePercent); + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + } + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private final java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @return the value + */ + public java.util.Date getTimeLastSourceStatisticsCollection() { + return timeLastSourceStatisticsCollection; + } + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private final java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count + * estimate. This value is reported per row because statistics can be collected at different + * times per object. This timestamp is stored in UTC. + * + * @return the value + */ + public java.util.Date getTimeLastTargetStatisticsCollection() { + return timeLastTargetStatisticsCollection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeLastSourceStatisticsCollection=") + .append(String.valueOf(this.timeLastSourceStatisticsCollection)); + sb.append(", timeLastTargetStatisticsCollection=") + .append(String.valueOf(this.timeLastTargetStatisticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationTableRowCountSummary)) { + return false; + } + + OracleDataVerificationTableRowCountSummary other = + (OracleDataVerificationTableRowCountSummary) o; + return java.util.Objects.equals( + this.timeLastSourceStatisticsCollection, + other.timeLastSourceStatisticsCollection) + && java.util.Objects.equals( + this.timeLastTargetStatisticsCollection, + other.timeLastTargetStatisticsCollection) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeLastSourceStatisticsCollection == null + ? 43 + : this.timeLastSourceStatisticsCollection.hashCode()); + result = + (result * PRIME) + + (this.timeLastTargetStatisticsCollection == null + ? 43 + : this.timeLastTargetStatisticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java new file mode 100644 index 00000000000..8566e7bfda7 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** Oracle database object types used by Data Verification. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum OracleDatabaseObjectTypes implements com.oracle.bmc.http.internal.BmcEnum { + Table("TABLE"), + Index("INDEX"), + View("VIEW"), + Sequence("SEQUENCE"), + Synonym("SYNONYM"), + Cluster("CLUSTER"), + Procedure("PROCEDURE"), + Function("FUNCTION"), + Package("PACKAGE"), + PackageBody("PACKAGE_BODY"), + Trigger("TRIGGER"), + User("USER"), + Role("ROLE"), + Profile("PROFILE"), + MaterializedView("MATERIALIZED_VIEW"), + Type("TYPE"), + TypeBody("TYPE_BODY"), + Operator("OPERATOR"), + Library("LIBRARY"), + Directory("DIRECTORY"), + Tablespace("TABLESPACE"), + DatabaseLink("DATABASE_LINK"), + Controlfile("CONTROLFILE"), + Datafile("DATAFILE"), + RedoLog("REDO_LOG"), + JavaClass("JAVA_CLASS"), + JavaSource("JAVA_SOURCE"), + JavaResource("JAVA_RESOURCE"), + XmlSchema("XML_SCHEMA"), + Queue("QUEUE"), + QueueTable("QUEUE_TABLE"), + Dimension("DIMENSION"), + Context("CONTEXT"), + + /** + * 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(OracleDatabaseObjectTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OracleDatabaseObjectTypes v : OracleDatabaseObjectTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OracleDatabaseObjectTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OracleDatabaseObjectTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OracleDatabaseObjectTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java index c89b683fba3..6c81b040d1b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Migration resource
+ * Oracle Migration resource. Deprecated: The parent-level Oracle migration configuration properties + * on this model are deprecated. Use {@code migrationSettings} instead.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -189,6 +190,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private OracleMigrationSettings migrationSettings; + + public Builder migrationSettings(OracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private OracleDataTransferMediumDetails dataTransferMediumDetails; @@ -306,6 +316,7 @@ public OracleMigration build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -376,6 +387,9 @@ public Builder copy(OracleMigration model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -435,6 +449,7 @@ public OracleMigration( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + OracleMigrationSettings migrationSettings, OracleDataTransferMediumDetails dataTransferMediumDetails, OracleInitialLoadSettings initialLoadSettings, OracleAdvisorSettings advisorSettings, @@ -462,6 +477,7 @@ public OracleMigration( freeformTags, definedTags, systemTags); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -472,6 +488,13 @@ public OracleMigration( this.advancedParameters = advancedParameters; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final OracleMigrationSettings migrationSettings; + + public OracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final OracleDataTransferMediumDetails dataTransferMediumDetails; @@ -561,6 +584,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleMigration("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -586,7 +610,8 @@ public boolean equals(Object o) { } OracleMigration other = (OracleMigration) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -606,6 +631,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java new file mode 100644 index 00000000000..66bdd04fe6b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java @@ -0,0 +1,54 @@ +/** + * 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.databasemigration.model; + +/** Supported Oracle migration methods. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum OracleMigrationMethods implements com.oracle.bmc.http.internal.BmcEnum { + OnlineLogical("ONLINE_LOGICAL"), + OfflineLogical("OFFLINE_LOGICAL"), + OnlineStandby("ONLINE_STANDBY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OracleMigrationMethods.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OracleMigrationMethods v : OracleMigrationMethods.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OracleMigrationMethods(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OracleMigrationMethods create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OracleMigrationMethods', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java new file mode 100644 index 00000000000..0e4bddfe525 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** + * Discriminator-only base Oracle migration settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = OracleMigrationSettings.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OracleMigrationSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OracleMigrationSettings() { + 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("OracleMigrationSettings("); + 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 OracleMigrationSettings)) { + return false; + } + + OracleMigrationSettings other = (OracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java new file mode 100644 index 00000000000..2522933df36 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** + * Discriminator-only base Oracle migration summary settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = OracleMigrationSettingsSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOfflineLogicalMigrationSettingsSummary.class, + name = "OFFLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineStandbyMigrationSettingsSummary.class, + name = "ONLINE_STANDBY"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineLogicalMigrationSettingsSummary.class, + name = "ONLINE_LOGICAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OracleMigrationSettingsSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OracleMigrationSettingsSummary() { + 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("OracleMigrationSettingsSummary("); + 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 OracleMigrationSettingsSummary)) { + return false; + } + + OracleMigrationSettingsSummary other = (OracleMigrationSettingsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java index 2a7ad4d5246..85bf92f58be 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Migration Summary
+ * Oracle Migration Summary. Deprecated: The parent-level Oracle migration configuration properties + * on this model are deprecated. Use {@code migrationSettings} instead.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -171,6 +172,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private OracleMigrationSettingsSummary migrationSettings; + + public Builder migrationSettings(OracleMigrationSettingsSummary migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") private String sourceContainerDatabaseConnectionId; @@ -225,6 +235,7 @@ public OracleMigrationSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationSettings, this.sourceContainerDatabaseConnectionId, this.sourceStandbyDatabaseConnectionId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -283,6 +294,9 @@ public Builder copy(OracleMigrationSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { this.sourceContainerDatabaseConnectionId( model.getSourceContainerDatabaseConnectionId()); @@ -322,6 +336,7 @@ public OracleMigrationSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + OracleMigrationSettingsSummary migrationSettings, String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { super( @@ -341,10 +356,18 @@ public OracleMigrationSummary( freeformTags, definedTags, systemTags); + this.migrationSettings = migrationSettings; this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final OracleMigrationSettingsSummary migrationSettings; + + public OracleMigrationSettingsSummary getMigrationSettings() { + return migrationSettings; + } + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") private final String sourceContainerDatabaseConnectionId; @@ -386,6 +409,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleMigrationSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", sourceContainerDatabaseConnectionId=") .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", sourceStandbyDatabaseConnectionId=") @@ -404,7 +428,8 @@ public boolean equals(Object o) { } OracleMigrationSummary other = (OracleMigrationSummary) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.sourceContainerDatabaseConnectionId, other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( @@ -417,6 +442,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.sourceContainerDatabaseConnectionId == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..c94bf697ad6 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,231 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle offline logical migration settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOfflineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOfflineLogicalMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOfflineLogicalMigrationSettings build() { + OracleOfflineLogicalMigrationSettings model = + new OracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOfflineLogicalMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOfflineLogicalMigrationSettings)) { + return false; + } + + OracleOfflineLogicalMigrationSettings other = (OracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java new file mode 100644 index 00000000000..56ea261ae1d --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java @@ -0,0 +1,103 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle offline logical migration summary settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOfflineLogicalMigrationSettingsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOfflineLogicalMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @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 OracleOfflineLogicalMigrationSettingsSummary build() { + OracleOfflineLogicalMigrationSettingsSummary model = + new OracleOfflineLogicalMigrationSettingsSummary(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOfflineLogicalMigrationSettingsSummary model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOfflineLogicalMigrationSettingsSummary() { + 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("OracleOfflineLogicalMigrationSettingsSummary("); + 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 OracleOfflineLogicalMigrationSettingsSummary)) { + return false; + } + + OracleOfflineLogicalMigrationSettingsSummary other = + (OracleOfflineLogicalMigrationSettingsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..b6c61832751 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,327 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle online logical migration settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOnlineLogicalMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private OracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(OracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineLogicalMigrationSettings build() { + OracleOnlineLogicalMigrationSettings model = + new OracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineLogicalMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + OracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final OracleGgsDeploymentDetails ggsDetails; + + public OracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineLogicalMigrationSettings)) { + return false; + } + + OracleOnlineLogicalMigrationSettings other = (OracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java new file mode 100644 index 00000000000..f5022378f3c --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java @@ -0,0 +1,148 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle online logical migration summary settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineLogicalMigrationSettingsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOnlineLogicalMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineLogicalMigrationSettingsSummary build() { + OracleOnlineLogicalMigrationSettingsSummary model = + new OracleOnlineLogicalMigrationSettingsSummary( + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineLogicalMigrationSettingsSummary model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineLogicalMigrationSettingsSummary(String sourceContainerDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineLogicalMigrationSettingsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineLogicalMigrationSettingsSummary)) { + return false; + } + + OracleOnlineLogicalMigrationSettingsSummary other = + (OracleOnlineLogicalMigrationSettingsSummary) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..ad19ef69dc7 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.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.databasemigration.model; + +/** + * Oracle online standby migration settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineStandbyMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOnlineStandbyMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private OracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(OracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineStandbyMigrationSettings build() { + OracleOnlineStandbyMigrationSettings model = + new OracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineStandbyMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + OracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final OracleGgsDeploymentDetails ggsDetails; + + public OracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineStandbyMigrationSettings)) { + return false; + } + + OracleOnlineStandbyMigrationSettings other = (OracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java new file mode 100644 index 00000000000..be46e95e145 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java @@ -0,0 +1,193 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle online standby migration summary settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineStandbyMigrationSettingsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleOnlineStandbyMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineStandbyMigrationSettingsSummary build() { + OracleOnlineStandbyMigrationSettingsSummary model = + new OracleOnlineStandbyMigrationSettingsSummary( + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineStandbyMigrationSettingsSummary model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineStandbyMigrationSettingsSummary( + String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineStandbyMigrationSettingsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineStandbyMigrationSettingsSummary)) { + return false; + } + + OracleOnlineStandbyMigrationSettingsSummary other = + (OracleOnlineStandbyMigrationSettingsSummary) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java new file mode 100644 index 00000000000..96bb1c26968 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java @@ -0,0 +1,116 @@ +/** + * 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.databasemigration.model; + +/** + * Details for running Data Verification. This request is modeled with a type discriminator so + * future Data Verification run options can be added without changing the required request body + * contract. + * + *

Note: The migration database combination is inferred from the migrationId in the path and is + * not part of this request body.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = RunDataVerificationDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultRunDataVerificationDetails.class, + name = "DEFAULT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class RunDataVerificationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected RunDataVerificationDetails() { + 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("RunDataVerificationDetails("); + 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 RunDataVerificationDetails)) { + return false; + } + + RunDataVerificationDetails other = (RunDataVerificationDetails) 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 discriminator for Run Data Verification details. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Default("DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java index d917dfbface..7e843e9cdc9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Create Migration resource parameters.
+ * Update Migration resource parameters. Deprecated: The parent-level Oracle migration configuration + * properties on this model are deprecated. Use {@code migrationSettings} instead.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -91,6 +92,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private UpdateOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(UpdateOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -197,6 +207,7 @@ public UpdateOracleMigrationDetails build() { this.targetDatabaseConnectionId, this.freeformTags, this.definedTags, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -234,6 +245,9 @@ public Builder copy(UpdateOracleMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -282,6 +296,7 @@ public UpdateOracleMigrationDetails( String targetDatabaseConnectionId, java.util.Map freeformTags, java.util.Map> definedTags, + UpdateOracleMigrationSettings migrationSettings, UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, UpdateOracleInitialLoadSettings initialLoadSettings, UpdateOracleAdvisorSettings advisorSettings, @@ -298,6 +313,7 @@ public UpdateOracleMigrationDetails( targetDatabaseConnectionId, freeformTags, definedTags); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -308,6 +324,13 @@ public UpdateOracleMigrationDetails( this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final UpdateOracleMigrationSettings migrationSettings; + + public UpdateOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -397,6 +420,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateOracleMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -422,7 +446,8 @@ public boolean equals(Object o) { } UpdateOracleMigrationDetails other = (UpdateOracleMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -442,6 +467,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java new file mode 100644 index 00000000000..2600f1f1e6e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java @@ -0,0 +1,84 @@ +/** + * 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.databasemigration.model; + +/** + * Discriminator-only base update settings for Oracle migration methods.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = UpdateOracleMigrationSettings.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateOracleMigrationSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateOracleMigrationSettings() { + 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("UpdateOracleMigrationSettings("); + 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 UpdateOracleMigrationSettings)) { + return false; + } + + UpdateOracleMigrationSettings other = (UpdateOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..d935e278584 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,233 @@ +/** + * 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.databasemigration.model; + +/** + * Update settings for an offline logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOfflineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleOfflineLogicalMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOfflineLogicalMigrationSettings build() { + UpdateOracleOfflineLogicalMigrationSettings model = + new UpdateOracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOfflineLogicalMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOfflineLogicalMigrationSettings)) { + return false; + } + + UpdateOracleOfflineLogicalMigrationSettings other = + (UpdateOracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..0ad0c9db51b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,329 @@ +/** + * 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.databasemigration.model; + +/** + * Update settings for an online logical Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOnlineLogicalMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleOnlineLogicalMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOnlineLogicalMigrationSettings build() { + UpdateOracleOnlineLogicalMigrationSettings model = + new UpdateOracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOnlineLogicalMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateOracleGgsDeploymentDetails ggsDetails; + + public UpdateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOnlineLogicalMigrationSettings)) { + return false; + } + + UpdateOracleOnlineLogicalMigrationSettings other = + (UpdateOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..3d97b1e8934 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java @@ -0,0 +1,374 @@ +/** + * 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.databasemigration.model; + +/** + * Update settings for an online standby Oracle migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOnlineStandbyMigrationSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleOnlineStandbyMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @param advancedParameters the value to set + * @return this builder + */ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOnlineStandbyMigrationSettings build() { + UpdateOracleOnlineStandbyMigrationSettings model = + new UpdateOracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOnlineStandbyMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateOracleGgsDeploymentDetails ggsDetails; + + public UpdateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** List of Migration Parameter objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * + * @return the value + */ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * + * @return the value + */ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOnlineStandbyMigrationSettings)) { + return false; + } + + UpdateOracleOnlineStandbyMigrationSettings other = + (UpdateOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java new file mode 100644 index 00000000000..9183099aa8b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use + * GetDataVerificationDetailRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class GetDataVerificationDetailRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the migration */ + private String migrationId; + + /** The OCID of the migration */ + public String getMigrationId() { + return migrationId; + } + /** + * 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. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDataVerificationDetailRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the migration */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + 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 = null; + + /** + * 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 instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDataVerificationDetailRequest o) { + migrationId(o.getMigrationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataVerificationDetailRequest 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 GetDataVerificationDetailRequest + */ + public GetDataVerificationDetailRequest build() { + GetDataVerificationDetailRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDataVerificationDetailRequest 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 GetDataVerificationDetailRequest + */ + public GetDataVerificationDetailRequest buildWithoutInvocationCallback() { + GetDataVerificationDetailRequest request = new GetDataVerificationDetailRequest(); + request.migrationId = migrationId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDataVerificationDetailRequest(migrationId, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().migrationId(migrationId).opcRequestId(opcRequestId).ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataVerificationDetailRequest)) { + return false; + } + + GetDataVerificationDetailRequest other = (GetDataVerificationDetailRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java new file mode 100644 index 00000000000..32795536ca9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java @@ -0,0 +1,633 @@ +/** + * 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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use + * ListDataVerificationObjectStatusesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectStatusesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the migration */ + private String migrationId; + + /** The OCID of the migration */ + public String getMigrationId() { + return migrationId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * 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. + */ + 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 filter to return only resources that match the entire name given. */ + private String name; + + /** A filter to return only resources that match the entire name given. */ + public String getName() { + return name; + } + /** A filter to return only results for a specific owner. */ + private String owner; + + /** A filter to return only results for a specific owner. */ + public String getOwner() { + return owner; + } + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + private String objectType; + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + public String getObjectType() { + return objectType; + } + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter; + + /** Free-text filter applied by the service to relevant fields for the report. */ + public String getFilter() { + return filter; + } + /** + * Match filter for object status results. + * + *

When {@code true}, returns only rows where source and target match. When {@code false}, + * returns only rows with mismatches. When omitted, returns all rows, ordered by mismatch first. + */ + private Boolean isMatch; + + /** + * Match filter for object status results. + * + *

When {@code true}, returns only rows where source and target match. When {@code false}, + * returns only rows with mismatches. When omitted, returns all rows, ordered by mismatch first. + */ + public Boolean getIsMatch() { + return isMatch; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. By default, non-matching object + * statuses are returned first, followed by matching statuses. Rows with the same match result + * are then sorted by owner, object type, and object name. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. By default, non-matching object + * statuses are returned first, followed by matching statuses. Rows with the same match result + * are then sorted by owner, object type, and object name. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + IsMatch("isMatch"), + Owner("owner"), + ObjectType("objectType"), + ObjectName("objectName"), + ; + + 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. By default, non-matching object + * statuses are returned first, followed by matching statuses. Rows with the same match result + * are then sorted by owner, object type, and object name. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationObjectStatusesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the migration */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * 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 = null; + + /** + * 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 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 filter to return only resources that match the entire name given. */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** A filter to return only results for a specific owner. */ + private String owner = null; + + /** + * A filter to return only results for a specific owner. + * + * @param owner the value to set + * @return this builder instance + */ + public Builder owner(String owner) { + this.owner = owner; + return this; + } + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + private String objectType = null; + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + * + * @param objectType the value to set + * @return this builder instance + */ + public Builder objectType(String objectType) { + this.objectType = objectType; + return this; + } + + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter = null; + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + * @param filter the value to set + * @return this builder instance + */ + public Builder filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Match filter for object status results. + * + *

When {@code true}, returns only rows where source and target match. When {@code + * false}, returns only rows with mismatches. When omitted, returns all rows, ordered by + * mismatch first. + */ + private Boolean isMatch = null; + + /** + * Match filter for object status results. + * + *

When {@code true}, returns only rows where source and target match. When {@code + * false}, returns only rows with mismatches. When omitted, returns all rows, ordered by + * mismatch first. + * + * @param isMatch the value to set + * @return this builder instance + */ + public Builder isMatch(Boolean isMatch) { + this.isMatch = isMatch; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. By default, non-matching + * object statuses are returned first, followed by matching statuses. Rows with the same + * match result are then sorted by owner, object type, and object name. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. By default, non-matching + * object statuses are returned first, followed by matching statuses. Rows with the same + * match result are then sorted by owner, object type, and object name. + * + * @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.databasemigration.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.databasemigration.model.SortOrders 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(ListDataVerificationObjectStatusesRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + name(o.getName()); + owner(o.getOwner()); + objectType(o.getObjectType()); + filter(o.getFilter()); + isMatch(o.getIsMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationObjectStatusesRequest 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 ListDataVerificationObjectStatusesRequest + */ + public ListDataVerificationObjectStatusesRequest build() { + ListDataVerificationObjectStatusesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationObjectStatusesRequest 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 ListDataVerificationObjectStatusesRequest + */ + public ListDataVerificationObjectStatusesRequest buildWithoutInvocationCallback() { + ListDataVerificationObjectStatusesRequest request = + new ListDataVerificationObjectStatusesRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.name = name; + request.owner = owner; + request.objectType = objectType; + request.filter = filter; + request.isMatch = isMatch; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationObjectStatusesRequest(migrationId, compartmentId, + // opcRequestId, ifMatch, name, owner, objectType, filter, isMatch, limit, page, 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() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .name(name) + .owner(owner) + .objectType(objectType) + .filter(filter) + .isMatch(isMatch) + .limit(limit) + .page(page) + .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(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",objectType=").append(String.valueOf(this.objectType)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",isMatch=").append(String.valueOf(this.isMatch)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectStatusesRequest)) { + return false; + } + + ListDataVerificationObjectStatusesRequest other = + (ListDataVerificationObjectStatusesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.isMatch, other.isMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.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.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = (result * PRIME) + (this.isMatch == null ? 43 : this.isMatch.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java new file mode 100644 index 00000000000..a895e1641fb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java @@ -0,0 +1,610 @@ +/** + * 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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use + * ListDataVerificationObjectTypeCountsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectTypeCountsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the migration */ + private String migrationId; + + /** The OCID of the migration */ + public String getMigrationId() { + return migrationId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * 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. + */ + 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 filter to return only results for a specific schema/owner. */ + private String schemaName; + + /** A filter to return only results for a specific schema/owner. */ + public String getSchemaName() { + return schemaName; + } + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + private String objectType; + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + public String getObjectType() { + return objectType; + } + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter; + + /** Free-text filter applied by the service to relevant fields for the report. */ + public String getFilter() { + return filter; + } + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters results + * where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + private Double minAbsDeltaPercent; + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters results + * where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + public Double getMinAbsDeltaPercent() { + return minAbsDeltaPercent; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for deltaPercent is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for deltaPercent is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DeltaPercent("deltaPercent"), + SchemaName("schemaName"), + ObjectType("objectType"), + SourceObjectCount("sourceObjectCount"), + TargetObjectCount("targetObjectCount"), + SourceInvalidCount("sourceInvalidCount"), + TargetInvalidCount("targetInvalidCount"), + ; + + 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 deltaPercent is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationObjectTypeCountsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the migration */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * 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 = null; + + /** + * 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 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 filter to return only results for a specific schema/owner. */ + private String schemaName = null; + + /** + * A filter to return only results for a specific schema/owner. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + */ + private String objectType = null; + + /** + * A filter to return only results for a specific object type. + * + *

The allowed values depend on the migration's {@code databaseCombination}: - Oracle + * migrations: {@code OracleDatabaseObjectTypes} - MySQL migrations: {@code + * MySqlDatabaseObjectTypes} + * + * @param objectType the value to set + * @return this builder instance + */ + public Builder objectType(String objectType) { + this.objectType = objectType; + return this; + } + + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter = null; + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + * @param filter the value to set + * @return this builder instance + */ + public Builder filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters + * results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + private Double minAbsDeltaPercent = null; + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters + * results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + * + * @param minAbsDeltaPercent the value to set + * @return this builder instance + */ + public Builder minAbsDeltaPercent(Double minAbsDeltaPercent) { + this.minAbsDeltaPercent = minAbsDeltaPercent; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for deltaPercent + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for deltaPercent + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.databasemigration.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.databasemigration.model.SortOrders 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(ListDataVerificationObjectTypeCountsRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + schemaName(o.getSchemaName()); + objectType(o.getObjectType()); + filter(o.getFilter()); + minAbsDeltaPercent(o.getMinAbsDeltaPercent()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationObjectTypeCountsRequest 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 ListDataVerificationObjectTypeCountsRequest + */ + public ListDataVerificationObjectTypeCountsRequest build() { + ListDataVerificationObjectTypeCountsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationObjectTypeCountsRequest 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 ListDataVerificationObjectTypeCountsRequest + */ + public ListDataVerificationObjectTypeCountsRequest buildWithoutInvocationCallback() { + ListDataVerificationObjectTypeCountsRequest request = + new ListDataVerificationObjectTypeCountsRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.schemaName = schemaName; + request.objectType = objectType; + request.filter = filter; + request.minAbsDeltaPercent = minAbsDeltaPercent; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationObjectTypeCountsRequest(migrationId, compartmentId, + // opcRequestId, ifMatch, schemaName, objectType, filter, minAbsDeltaPercent, limit, + // page, 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() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .schemaName(schemaName) + .objectType(objectType) + .filter(filter) + .minAbsDeltaPercent(minAbsDeltaPercent) + .limit(limit) + .page(page) + .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(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectType=").append(String.valueOf(this.objectType)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",minAbsDeltaPercent=").append(String.valueOf(this.minAbsDeltaPercent)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectTypeCountsRequest)) { + return false; + } + + ListDataVerificationObjectTypeCountsRequest other = + (ListDataVerificationObjectTypeCountsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.minAbsDeltaPercent, other.minAbsDeltaPercent) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.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.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = + (result * PRIME) + + (this.minAbsDeltaPercent == null + ? 43 + : this.minAbsDeltaPercent.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java new file mode 100644 index 00000000000..9e59a7a3453 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java @@ -0,0 +1,588 @@ +/** + * 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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use + * ListDataVerificationTableRowCountsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationTableRowCountsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the migration */ + private String migrationId; + + /** The OCID of the migration */ + public String getMigrationId() { + return migrationId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * 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. + */ + 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 filter to return only results for a specific owner. */ + private String owner; + + /** A filter to return only results for a specific owner. */ + public String getOwner() { + return owner; + } + /** A filter to return only results for a specific table. */ + private String tableName; + + /** A filter to return only results for a specific table. */ + public String getTableName() { + return tableName; + } + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter; + + /** Free-text filter applied by the service to relevant fields for the report. */ + public String getFilter() { + return filter; + } + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters results + * where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + private Double minAbsDeltaPercent; + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters results + * where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + public Double getMinAbsDeltaPercent() { + return minAbsDeltaPercent; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for variancePercent + * is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for variancePercent + * is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + VariancePercent("variancePercent"), + Owner("owner"), + TableName("tableName"), + TimeLastSourceStatisticsCollection("timeLastSourceStatisticsCollection"), + TimeLastTargetStatisticsCollection("timeLastTargetStatisticsCollection"), + SourceRowCount("sourceRowCount"), + TargetRowCount("targetRowCount"), + ; + + 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 variancePercent + * is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationTableRowCountsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the migration */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * 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 = null; + + /** + * 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 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 filter to return only results for a specific owner. */ + private String owner = null; + + /** + * A filter to return only results for a specific owner. + * + * @param owner the value to set + * @return this builder instance + */ + public Builder owner(String owner) { + this.owner = owner; + return this; + } + + /** A filter to return only results for a specific table. */ + private String tableName = null; + + /** + * A filter to return only results for a specific table. + * + * @param tableName the value to set + * @return this builder instance + */ + public Builder tableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** Free-text filter applied by the service to relevant fields for the report. */ + private String filter = null; + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + * @param filter the value to set + * @return this builder instance + */ + public Builder filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters + * results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + */ + private Double minAbsDeltaPercent = null; + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. The service filters + * results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. Must be non-negative. + * + *

Note: This filter applies to the object type counts report, which uses {@code + * deltaPercent}. Table row count reports use {@code variancePercent} instead. + * + * @param minAbsDeltaPercent the value to set + * @return this builder instance + */ + public Builder minAbsDeltaPercent(Double minAbsDeltaPercent) { + this.minAbsDeltaPercent = minAbsDeltaPercent; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * variancePercent is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * variancePercent is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.databasemigration.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.databasemigration.model.SortOrders 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(ListDataVerificationTableRowCountsRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + owner(o.getOwner()); + tableName(o.getTableName()); + filter(o.getFilter()); + minAbsDeltaPercent(o.getMinAbsDeltaPercent()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationTableRowCountsRequest 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 ListDataVerificationTableRowCountsRequest + */ + public ListDataVerificationTableRowCountsRequest build() { + ListDataVerificationTableRowCountsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationTableRowCountsRequest 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 ListDataVerificationTableRowCountsRequest + */ + public ListDataVerificationTableRowCountsRequest buildWithoutInvocationCallback() { + ListDataVerificationTableRowCountsRequest request = + new ListDataVerificationTableRowCountsRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.owner = owner; + request.tableName = tableName; + request.filter = filter; + request.minAbsDeltaPercent = minAbsDeltaPercent; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationTableRowCountsRequest(migrationId, compartmentId, + // opcRequestId, ifMatch, owner, tableName, filter, minAbsDeltaPercent, limit, page, + // 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() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .owner(owner) + .tableName(tableName) + .filter(filter) + .minAbsDeltaPercent(minAbsDeltaPercent) + .limit(limit) + .page(page) + .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(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",tableName=").append(String.valueOf(this.tableName)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",minAbsDeltaPercent=").append(String.valueOf(this.minAbsDeltaPercent)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationTableRowCountsRequest)) { + return false; + } + + ListDataVerificationTableRowCountsRequest other = + (ListDataVerificationTableRowCountsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.minAbsDeltaPercent, other.minAbsDeltaPercent) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.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.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = + (result * PRIME) + + (this.minAbsDeltaPercent == null + ? 43 + : this.minAbsDeltaPercent.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java new file mode 100644 index 00000000000..2bf3ae8e43f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java @@ -0,0 +1,364 @@ +/** + * 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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use RunDataVerificationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class RunDataVerificationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails> { + + /** The OCID of the migration */ + private String migrationId; + + /** The OCID of the migration */ + public String getMigrationId() { + return migrationId; + } + /** Details for running Data Verification. */ + private com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails; + + /** Details for running Data Verification. */ + public com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + getRunDataVerificationDetails() { + return runDataVerificationDetails; + } + /** + * 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; + } + /** + * 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. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemigration.model.RunDataVerificationDetails getBody$() { + return runDataVerificationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RunDataVerificationRequest, + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the migration */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** Details for running Data Verification. */ + private com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails = null; + + /** + * Details for running Data Verification. + * + * @param runDataVerificationDetails the value to set + * @return this builder instance + */ + public Builder runDataVerificationDetails( + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails) { + this.runDataVerificationDetails = runDataVerificationDetails; + 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; + } + + /** + * 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 = null; + + /** + * 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 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(RunDataVerificationRequest o) { + migrationId(o.getMigrationId()); + runDataVerificationDetails(o.getRunDataVerificationDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RunDataVerificationRequest 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 RunDataVerificationRequest + */ + public RunDataVerificationRequest build() { + RunDataVerificationRequest 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.databasemigration.model.RunDataVerificationDetails body) { + runDataVerificationDetails(body); + return this; + } + + /** + * Build the instance of RunDataVerificationRequest 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 RunDataVerificationRequest + */ + public RunDataVerificationRequest buildWithoutInvocationCallback() { + RunDataVerificationRequest request = new RunDataVerificationRequest(); + request.migrationId = migrationId; + request.runDataVerificationDetails = runDataVerificationDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RunDataVerificationRequest(migrationId, runDataVerificationDetails, ifMatch, + // 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() + .migrationId(migrationId) + .runDataVerificationDetails(runDataVerificationDetails) + .ifMatch(ifMatch) + .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(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",runDataVerificationDetails=") + .append(String.valueOf(this.runDataVerificationDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 RunDataVerificationRequest)) { + return false; + } + + RunDataVerificationRequest other = (RunDataVerificationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals( + this.runDataVerificationDetails, other.runDataVerificationDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.migrationId == null ? 43 : this.migrationId.hashCode()); + result = + (result * PRIME) + + (this.runDataVerificationDetails == null + ? 43 + : this.runDataVerificationDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java new file mode 100644 index 00000000000..effff4968d1 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java @@ -0,0 +1,218 @@ +/** + * 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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class GetDataVerificationDetailResponse 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 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 DataVerificationDetail} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail; + + /** + * The returned {@code DataVerificationDetail} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationDetail + getDataVerificationDetail() { + return dataVerificationDetail; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "dataVerificationDetail" + }) + private GetDataVerificationDetailResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.dataVerificationDetail = dataVerificationDetail; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDataVerificationDetailResponse> { + 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 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 DataVerificationDetail} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail; + + /** + * The returned {@code DataVerificationDetail} instance. + * + * @param dataVerificationDetail the value to set + * @return this builder + */ + public Builder dataVerificationDetail( + com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail) { + this.dataVerificationDetail = dataVerificationDetail; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDataVerificationDetailResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + dataVerificationDetail(o.getDataVerificationDetail()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDataVerificationDetailResponse build() { + return new GetDataVerificationDetailResponse( + __httpStatusCode__, headers, opcRequestId, etag, dataVerificationDetail); + } + } + + /** + * 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(",dataVerificationDetail=").append(String.valueOf(dataVerificationDetail)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataVerificationDetailResponse)) { + return false; + } + + GetDataVerificationDetailResponse other = (GetDataVerificationDetailResponse) 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.dataVerificationDetail, other.dataVerificationDetail); + } + + @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.dataVerificationDetail == null + ? 43 + : this.dataVerificationDetail.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java new file mode 100644 index 00000000000..9867b78b8b8 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectStatusesResponse + 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 DataVerificationObjectStatusCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection; + + /** + * The returned {@code DataVerificationObjectStatusCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + getDataVerificationObjectStatusCollection() { + return dataVerificationObjectStatusCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dataVerificationObjectStatusCollection" + }) + private ListDataVerificationObjectStatusesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataVerificationObjectStatusCollection = dataVerificationObjectStatusCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDataVerificationObjectStatusesResponse> { + 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 DataVerificationObjectStatusCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection; + + /** + * The returned {@code DataVerificationObjectStatusCollection} instance. + * + * @param dataVerificationObjectStatusCollection the value to set + * @return this builder + */ + public Builder dataVerificationObjectStatusCollection( + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection) { + this.dataVerificationObjectStatusCollection = dataVerificationObjectStatusCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDataVerificationObjectStatusesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataVerificationObjectStatusCollection(o.getDataVerificationObjectStatusCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDataVerificationObjectStatusesResponse build() { + return new ListDataVerificationObjectStatusesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dataVerificationObjectStatusCollection); + } + } + + /** + * 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(",dataVerificationObjectStatusCollection=") + .append(String.valueOf(dataVerificationObjectStatusCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectStatusesResponse)) { + return false; + } + + ListDataVerificationObjectStatusesResponse other = + (ListDataVerificationObjectStatusesResponse) 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.dataVerificationObjectStatusCollection, + other.dataVerificationObjectStatusCollection); + } + + @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.dataVerificationObjectStatusCollection == null + ? 43 + : this.dataVerificationObjectStatusCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java new file mode 100644 index 00000000000..13ee9afda0f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java @@ -0,0 +1,242 @@ +/** + * 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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectTypeCountsResponse + 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 DataVerificationObjectTypeCountCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection; + + /** + * The returned {@code DataVerificationObjectTypeCountCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + getDataVerificationObjectTypeCountCollection() { + return dataVerificationObjectTypeCountCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dataVerificationObjectTypeCountCollection" + }) + private ListDataVerificationObjectTypeCountsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataVerificationObjectTypeCountCollection = dataVerificationObjectTypeCountCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDataVerificationObjectTypeCountsResponse> { + 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 DataVerificationObjectTypeCountCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection; + + /** + * The returned {@code DataVerificationObjectTypeCountCollection} instance. + * + * @param dataVerificationObjectTypeCountCollection the value to set + * @return this builder + */ + public Builder dataVerificationObjectTypeCountCollection( + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection) { + this.dataVerificationObjectTypeCountCollection = + dataVerificationObjectTypeCountCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDataVerificationObjectTypeCountsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataVerificationObjectTypeCountCollection( + o.getDataVerificationObjectTypeCountCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDataVerificationObjectTypeCountsResponse build() { + return new ListDataVerificationObjectTypeCountsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dataVerificationObjectTypeCountCollection); + } + } + + /** + * 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(",dataVerificationObjectTypeCountCollection=") + .append(String.valueOf(dataVerificationObjectTypeCountCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectTypeCountsResponse)) { + return false; + } + + ListDataVerificationObjectTypeCountsResponse other = + (ListDataVerificationObjectTypeCountsResponse) 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.dataVerificationObjectTypeCountCollection, + other.dataVerificationObjectTypeCountCollection); + } + + @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.dataVerificationObjectTypeCountCollection == null + ? 43 + : this.dataVerificationObjectTypeCountCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java new file mode 100644 index 00000000000..b0a7449be43 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationTableRowCountsResponse + 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 DataVerificationTableRowCountCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection; + + /** + * The returned {@code DataVerificationTableRowCountCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + getDataVerificationTableRowCountCollection() { + return dataVerificationTableRowCountCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dataVerificationTableRowCountCollection" + }) + private ListDataVerificationTableRowCountsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataVerificationTableRowCountCollection = dataVerificationTableRowCountCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDataVerificationTableRowCountsResponse> { + 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 DataVerificationTableRowCountCollection} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection; + + /** + * The returned {@code DataVerificationTableRowCountCollection} instance. + * + * @param dataVerificationTableRowCountCollection the value to set + * @return this builder + */ + public Builder dataVerificationTableRowCountCollection( + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection) { + this.dataVerificationTableRowCountCollection = dataVerificationTableRowCountCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDataVerificationTableRowCountsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataVerificationTableRowCountCollection(o.getDataVerificationTableRowCountCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDataVerificationTableRowCountsResponse build() { + return new ListDataVerificationTableRowCountsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dataVerificationTableRowCountCollection); + } + } + + /** + * 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(",dataVerificationTableRowCountCollection=") + .append(String.valueOf(dataVerificationTableRowCountCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationTableRowCountsResponse)) { + return false; + } + + ListDataVerificationTableRowCountsResponse other = + (ListDataVerificationTableRowCountsResponse) 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.dataVerificationTableRowCountCollection, + other.dataVerificationTableRowCountCollection); + } + + @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.dataVerificationTableRowCountCollection == null + ? 43 + : this.dataVerificationTableRowCountCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java new file mode 100644 index 00000000000..e56b1ab3bdd --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java @@ -0,0 +1,217 @@ +/** + * 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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class RunDataVerificationResponse 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 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 DataVerificationDetail} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail; + + /** + * The returned {@code DataVerificationDetail} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationDetail + getDataVerificationDetail() { + return dataVerificationDetail; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "dataVerificationDetail" + }) + private RunDataVerificationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.dataVerificationDetail = dataVerificationDetail; + } + + 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 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 DataVerificationDetail} instance. */ + private com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail; + + /** + * The returned {@code DataVerificationDetail} instance. + * + * @param dataVerificationDetail the value to set + * @return this builder + */ + public Builder dataVerificationDetail( + com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail) { + this.dataVerificationDetail = dataVerificationDetail; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RunDataVerificationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + dataVerificationDetail(o.getDataVerificationDetail()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RunDataVerificationResponse build() { + return new RunDataVerificationResponse( + __httpStatusCode__, headers, opcRequestId, etag, dataVerificationDetail); + } + } + + /** + * 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(",dataVerificationDetail=").append(String.valueOf(dataVerificationDetail)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RunDataVerificationResponse)) { + return false; + } + + RunDataVerificationResponse other = (RunDataVerificationResponse) 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.dataVerificationDetail, other.dataVerificationDetail); + } + + @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.dataVerificationDetail == null + ? 43 + : this.dataVerificationDetail.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json b/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json index d6bc0168336..14ca501f442 100644 --- a/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json +++ b/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json @@ -556,6 +556,55 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOfflineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOfflineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOnlineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOnlineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOnlineStandbyMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CloneOracleOnlineStandbyMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.CollectTracesData", @@ -1088,6 +1137,13 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.CreateOracleNfsDataTransferMediumDetails", @@ -1116,6 +1172,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOfflineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOfflineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOnlineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOnlineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOnlineStandbyMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleOnlineStandbyMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.CreateParameterFileVersionDetails", @@ -1209,6 +1307,89 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationDetail$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.DatabaseCombination", @@ -1297,6 +1478,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DefaultRunDataVerificationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DefaultRunDataVerificationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.DiagnosticsResult", @@ -1936,6 +2131,48 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationObjectStatusSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationObjectStatusSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationObjectTypeCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationObjectTypeCountSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationTableRowCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataVerificationTableRowCountSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObject", @@ -1964,6 +2201,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObjectTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.MySqlGgsDeploymentDetails", @@ -2359,6 +2602,48 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationObjectStatusSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationObjectStatusSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationObjectTypeCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationObjectTypeCountSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationTableRowCountSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDataVerificationTableRowCountSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObject", @@ -2387,6 +2672,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObjectTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.OracleDbLinkDataTransferMediumDetails", @@ -2443,6 +2734,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationMethods", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.OracleMigrationObjectCollection", @@ -2457,6 +2754,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationSettingsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.OracleMigrationSummary", @@ -2499,6 +2810,90 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOfflineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOfflineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOfflineLogicalMigrationSettingsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOfflineLogicalMigrationSettingsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineLogicalMigrationSettingsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineLogicalMigrationSettingsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineStandbyMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineStandbyMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineStandbyMigrationSettingsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleOnlineStandbyMigrationSettingsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.ParameterFileVersion", @@ -2669,6 +3064,19 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.RunDataVerificationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.RunDataVerificationDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.ScriptIds", @@ -3262,6 +3670,13 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.UpdateOracleNfsDataTransferMediumDetails", @@ -3290,6 +3705,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOfflineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOfflineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOnlineLogicalMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOnlineLogicalMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOnlineStandbyMigrationSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleOnlineStandbyMigrationSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemigration.model.UpdateReplicat", diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 1174b83da23..fb0340b270a 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 6dfae89ca29..233047cb386 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 7d8d999dc60..615af62fa1e 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index b678ac34eda..7191d8f61d0 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 1e175e000f0..5825411a997 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 7432ea4a997..4dddb0ef941 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index b3d9ff0fe06..173b9951cad 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 92fa22facf3..7cb130b4200 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 0764917ff01..e71eb503a32 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 6ccbfa3e385..3214f22e75f 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index d8afb8d4a1d..cbaaf2dd9c2 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 0ddb0e42d31..975668418a3 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index 7faee813007..7fadfe9212b 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 160b1f9f82e..6cf2e63be3e 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index feb4db578aa..652d1ef46d3 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 710ec80c1c4..a4a4cc6d97b 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index f40c9fed6a0..dab35249a02 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 160ae2a88dc..6f695bc0217 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 92a7e62dfbb..7530e19c05c 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 988e5bc7810..012d6ff98b8 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml index 49c39b1b8af..279ce496454 100644 --- a/bmc-distributeddatabasev26/pom.xml +++ b/bmc-distributeddatabasev26/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-distributeddatabasev26 @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 77d52d66184..c8d4f67e84b 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.2 + 3.96.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 4d16b13f4d8..2d843c283c8 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index cb95595e720..cc653781130 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index c3415f230df..0a89f993bfa 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 10b7964fa84..ad38b61d6a5 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.2 + 3.96.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 test diff --git a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java index 492e1c13553..c6034bc0522 100644 --- a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java +++ b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java @@ -7,9 +7,13 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.Optional; import javax.crypto.Cipher; -import com.oracle.bmc.auth.AuthenticationDetailsProvider; +import com.oracle.bmc.Region; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider; import com.oracle.bmc.encryption.*; public class DecryptionHandler extends CipherHandler { @@ -50,24 +54,110 @@ public OciCryptoResult decrypt(byte[] dataWithHeader) throws IOException { } /** - * If this key provider already has the KMSMasterKey that was requested, it will return it. If - * it does not have a representation of the KMSMasterKey locally, it will attempt to retrieve it - * from KMS. + * If this key provider already has the requested KmsMasterKey, it will return it after + * validating the encrypted blob metadata. If it does not have a representation of the + * KmsMasterKey locally, it will attempt to retrieve it from KMS only when the blob region is + * registered with the SDK or matches the provider's configured region. */ private KmsMasterKey createDecryptionKmsMasterKey(EncryptionHeader encryptionHeader) { - KmsMasterKey kmsMasterKey = (KmsMasterKey) provider.getMasterKey(); + if (encryptionHeader == null) { + throw new IllegalArgumentException("Encrypted blob header is missing."); + } + + if (encryptionHeader.getEncryptedDataKeys() == null + || encryptionHeader.getEncryptedDataKeys().isEmpty() + || encryptionHeader.getEncryptionKey() == null) { + throw new IllegalArgumentException("Encrypted blob KMS key metadata is missing."); + } + EncryptionKey encryptionKey = encryptionHeader.getEncryptionKey(); - if (kmsMasterKey == null - || !kmsMasterKey.getVaultId().equals(encryptionKey.getVaultId()) - || !kmsMasterKey.getKmsMasterKeyId().equals(encryptionKey.getMasterKeyId()) - || !kmsMasterKey.getRegion().equals(encryptionKey.getRegion())) { - return new KmsMasterKey( - (AuthenticationDetailsProvider) provider.getAuthenticationProvider(), - encryptionKey.getRegion(), - encryptionKey.getVaultId(), - encryptionKey.getMasterKeyId()); + validateRequiredMetadata(encryptionKey.getMasterKeyId(), "master key ID"); + validateRequiredMetadata(encryptionKey.getVaultId(), "vault ID"); + validateRequiredMetadata(encryptionKey.getRegion(), "region"); + + KmsMasterKey kmsMasterKey = (KmsMasterKey) provider.getMasterKey(); + if (kmsMasterKey != null) { + if (!kmsMasterKey.getKmsMasterKeyId().equals(encryptionKey.getMasterKeyId())) { + throw new IllegalArgumentException( + "Encrypted blob master key ID does not match the configured KMS master key."); + } + if (!kmsMasterKey.getVaultId().equals(encryptionKey.getVaultId())) { + throw new IllegalArgumentException( + "Encrypted blob vault ID does not match the configured KMS master key."); + } + if (!regionsMatch(kmsMasterKey.getRegion(), encryptionKey.getRegion())) { + throw new IllegalArgumentException( + "Encrypted blob region does not match the configured KMS master key."); + } + return kmsMasterKey; + } + + Optional resolvedRegion = + Region.resolveRegionWithoutDefaultRealmFallback(encryptionKey.getRegion()); + BasicAuthenticationDetailsProvider authenticationDetailsProvider = null; + if (!resolvedRegion.isPresent()) { + authenticationDetailsProvider = + (BasicAuthenticationDetailsProvider) provider.getAuthenticationProvider(); + resolvedRegion = + getMatchingConfiguredRegion( + authenticationDetailsProvider, encryptionKey.getRegion()); + } + + Region region = + resolvedRegion.orElseThrow( + () -> + new IllegalArgumentException( + "Encrypted blob region is not registered with the SDK.")); + if (authenticationDetailsProvider == null) { + authenticationDetailsProvider = + (BasicAuthenticationDetailsProvider) provider.getAuthenticationProvider(); + } + return new KmsMasterKey( + authenticationDetailsProvider, + region.getRegionId(), + encryptionKey.getVaultId(), + encryptionKey.getMasterKeyId()); + } + + static Optional getMatchingConfiguredRegion( + BasicAuthenticationDetailsProvider authenticationDetailsProvider, + String requestedRegion) { + Region configuredRegion; + if (authenticationDetailsProvider instanceof ConfigFileAuthenticationDetailsProvider) { + configuredRegion = + ((ConfigFileAuthenticationDetailsProvider) authenticationDetailsProvider) + .getRegion(); + } else if (authenticationDetailsProvider + instanceof SessionTokenAuthenticationDetailsProvider) { + configuredRegion = + ((SessionTokenAuthenticationDetailsProvider) authenticationDetailsProvider) + .getRegion(); } else { - return (KmsMasterKey) provider.getMasterKey(); + return Optional.empty(); + } + + if (configuredRegion != null + && configuredRegion.getRegionId().equalsIgnoreCase(requestedRegion)) { + return Optional.of(configuredRegion); + } + return Optional.empty(); + } + + private static boolean regionsMatch(String configuredRegion, String blobRegion) { + if (configuredRegion.equalsIgnoreCase(blobRegion)) { + return true; + } + + return Region.resolveRegisteredRegion(configuredRegion) + .flatMap( + configured -> + Region.resolveRegisteredRegion(blobRegion).map(configured::equals)) + .orElse(false); + } + + private static void validateRequiredMetadata(String value, String fieldName) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Encrypted blob " + fieldName + " is missing."); } } } diff --git a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java index 8d44c6e1b7e..668751d5875 100644 --- a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java +++ b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java @@ -4,20 +4,280 @@ */ package com.oracle.bmc.encryption.internal; +import com.oracle.bmc.Realm; +import com.oracle.bmc.Region; import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +import com.oracle.bmc.auth.RegionProvider; +import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider; +import com.oracle.bmc.encryption.KmsMasterKey; import com.oracle.bmc.encryption.MasterKey; import com.oracle.bmc.encryption.MasterKeyProvider; +import com.oracle.bmc.http.client.Serializer; import java.io.ByteArrayInputStream; import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Base64; +import java.util.Optional; import org.junit.Test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertThrows; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.mockito.Mockito.withSettings; public class DecryptionHandlerTest { private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; private static final String INVALID_HEADER_SIZE_MESSAGE = "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + private static final String REGION = "us-phoenix-1"; + private static final String VAULT_ID = "test-vault-id"; + private static final String MASTER_KEY_ID = "test-master-key-id"; + + @Test + public void decryptingStreamAcceptsBlobWhenPinnedMetadataMatches() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader(REGION, VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptRejectsDifferentPinnedMasterKeyId() { + assertPinnedMetadataRejected( + createEncryptionHeader(REGION, VAULT_ID, "different-master-key-id"), + "Encrypted blob master key ID does not match the configured KMS master key."); + } + + @Test + public void decryptRejectsDifferentPinnedVaultId() { + assertPinnedMetadataRejected( + createEncryptionHeader(REGION, "different-vault-id", MASTER_KEY_ID), + "Encrypted blob vault ID does not match the configured KMS master key."); + } + + @Test + public void decryptRejectsDifferentPinnedRegion() { + assertPinnedMetadataRejected( + createEncryptionHeader("us-ashburn-1", VAULT_ID, MASTER_KEY_ID), + "Encrypted blob region does not match the configured KMS master key."); + } + + @Test + public void decryptingStreamAcceptsPinnedRegionShortName() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader("phx", VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptingStreamAcceptsPinnedRegionCaseDifference() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + "US-PHOENIX-1", VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptingStreamAcceptsMatchingPinnedPrivateRegion() throws Exception { + String privateRegion = "private.customer.example.com"; + KmsMasterKey pinnedKey = createMasterKey(privateRegion, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + privateRegion, VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptOnlyProviderRejectsUnknownDottedRegionBeforeCreatingKey() { + assertDiscoveryRejectedBeforeCreatingKey("attacker.example.com"); + } + + @Test + public void decryptOnlyProviderRejectsUnknownRegionBeforeCreatingKey() { + assertDiscoveryRejectedBeforeCreatingKey("unknown-region-1"); + } + + @Test + public void decryptOnlyProviderRequiresMasterKeyId() { + assertMissingMetadataRejected( + createEncryptionHeader(REGION, VAULT_ID, null), + "Encrypted blob master key ID is missing."); + } + + @Test + public void decryptOnlyProviderRequiresVaultId() { + assertMissingMetadataRejected( + createEncryptionHeader(REGION, "", MASTER_KEY_ID), + "Encrypted blob vault ID is missing."); + } + + @Test + public void decryptOnlyProviderRequiresRegion() { + assertMissingMetadataRejected( + createEncryptionHeader(null, VAULT_ID, MASTER_KEY_ID), + "Encrypted blob region is missing."); + } + + @Test + public void decryptRequiresKmsKeyMetadata() { + assertMissingMetadataRejected( + new EncryptionHeader(), "Encrypted blob KMS key metadata is missing."); + } + + @Test + public void decryptRejectsMissingEncryptionHeader() { + assertMissingMetadataRejected(null, "Encrypted blob header is missing."); + } + + @Test + public void configFileProviderAllowsItsMatchingUnregisteredRegion() { + String regionId = "config-file.private.example.com"; + Region configuredRegion = Region.registerFromConfigFileFallback(regionId, Realm.OC1); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + + ConfigFileAuthenticationDetailsProvider authenticationDetailsProvider = + mock(ConfigFileAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + Optional result = + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, "CONFIG-FILE.PRIVATE.EXAMPLE.COM"); + + assertTrue(result.isPresent()); + assertSame(configuredRegion, result.get()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void decryptOnlyProviderRejectsUnregisteredRegionWhenConfiguredRegionDiffers() + throws Exception { + String region = "configured-by-another-provider.example.com"; + Region.registerFromConfigFileFallback(region, Realm.OC1); + ConfigFileAuthenticationDetailsProvider authenticationDetailsProvider = + mock(ConfigFileAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(Region.US_ASHBURN_1); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + region, + VAULT_ID, + MASTER_KEY_ID))))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + assertEquals(1, provider.getAuthenticationProviderCalls); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void sessionTokenProviderAllowsItsMatchingUnregisteredRegion() { + String regionId = "session-token.private.example.com"; + Region configuredRegion = Region.registerFromConfigFileFallback(regionId, Realm.OC1); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + + SessionTokenAuthenticationDetailsProvider authenticationDetailsProvider = + mock(SessionTokenAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + Optional result = + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, "SESSION-TOKEN.PRIVATE.EXAMPLE.COM"); + + assertTrue(result.isPresent()); + assertSame(configuredRegion, result.get()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void sessionTokenProviderRejectsDifferentUnregisteredRegion() { + String requestedRegion = "different-session-token.private.example.com"; + Region configuredRegion = + Region.registerFromConfigFileFallback( + "configured-session-token.private.example.com", Realm.OC1); + SessionTokenAuthenticationDetailsProvider authenticationDetailsProvider = + mock(SessionTokenAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + assertFalse( + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, requestedRegion) + .isPresent()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void decryptOnlyProviderDoesNotTrustRegionFromGenericRegionProvider() throws Exception { + String region = "signer-only.private.example.com"; + Region fallbackRegion = Region.registerFromConfigFileFallback(region, Realm.OC1); + BasicAuthenticationDetailsProvider authenticationDetailsProvider = + mock( + BasicAuthenticationDetailsProvider.class, + withSettings().extraInterfaces(RegionProvider.class)); + when(((RegionProvider) authenticationDetailsProvider).getRegion()) + .thenReturn(fallbackRegion); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.decrypt( + createPayload( + createEncryptionHeader( + region, VAULT_ID, MASTER_KEY_ID)))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + verify((RegionProvider) authenticationDetailsProvider, never()).getRegion(); + } @Test public void testDecrypt_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() @@ -92,21 +352,118 @@ private static byte[] createPayloadWithHeaderSize(int headerSize) { return buffer.array(); } + private static EncryptionHeader createEncryptionHeader( + String region, String vaultId, String masterKeyId) { + EncryptionHeader encryptionHeader = new EncryptionHeader(); + encryptionHeader.setEncryptionHeader( + new EncryptionKey(region, vaultId, masterKeyId, "encrypted-data-key"), + "AAAAAAAAAAAAAAAA", + ""); + return encryptionHeader; + } + + private static byte[] createPayload(EncryptionHeader encryptionHeader) throws Exception { + byte[] header = + Serializer.getDefault() + .writeValueAsString(encryptionHeader) + .getBytes(StandardCharsets.UTF_8); + ByteBuffer buffer = ByteBuffer.allocate(6 + header.length); + buffer.putShort((short) 1); + buffer.putInt(header.length); + buffer.put(header); + return buffer.array(); + } + + private static KmsMasterKey createMasterKey(String region, String vaultId, String masterKeyId) { + KmsMasterKey masterKey = mock(KmsMasterKey.class); + when(masterKey.getRegion()).thenReturn(region); + when(masterKey.getVaultId()).thenReturn(vaultId); + when(masterKey.getKmsMasterKeyId()).thenReturn(masterKeyId); + when(masterKey.decryptDataKey("encrypted-data-key", masterKeyId)) + .thenReturn(Base64.getEncoder().encodeToString(new byte[32])); + return masterKey; + } + + private static void assertPinnedMetadataRejected( + EncryptionHeader encryptionHeader, String expectedMessage) { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> handler.decrypt(createPayload(encryptionHeader))); + + assertEquals(expectedMessage, exception.getMessage()); + assertEquals(0, provider.getAuthenticationProviderCalls); + verify(pinnedKey, never()).decryptDataKey(anyString(), anyString()); + } + + private static void assertDiscoveryRejectedBeforeCreatingKey(String region) { + BasicAuthenticationDetailsProvider authenticationDetailsProvider = + mock(BasicAuthenticationDetailsProvider.class); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.decrypt( + createPayload( + createEncryptionHeader( + region, VAULT_ID, MASTER_KEY_ID)))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + assertEquals(1, provider.getAuthenticationProviderCalls); + } + + private static void assertMissingMetadataRejected( + EncryptionHeader encryptionHeader, String expectedMessage) { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> handler.decrypt(createPayload(encryptionHeader))); + + assertEquals(expectedMessage, exception.getMessage()); + assertEquals(0, provider.getMasterKeyCalls); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + private static final class CountingMasterKeyProvider implements MasterKeyProvider { + private final MasterKey masterKey; + private final AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private int getMasterKeyCalls = 0; private int getAuthenticationProviderCalls = 0; + private CountingMasterKeyProvider() { + this(null, null); + } + + private CountingMasterKeyProvider( + MasterKey masterKey, + AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { + this.masterKey = masterKey; + this.authenticationDetailsProvider = authenticationDetailsProvider; + } + @Override public MasterKey getMasterKey() { getMasterKeyCalls++; - return null; + return masterKey; } @Override public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { getAuthenticationProviderCalls++; - return null; + return authenticationDetailsProvider; } @Override diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 6754b5da48d..0ae6b58e7a4 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.95.2 + 3.96.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index f3f2a98ddc1..a0447d63bf1 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 77f08c24ca6..d75b53239ad 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 1f228be4309..cdf7cf4c37c 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index d1b22915d62..61fcd006519 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 2dd0c6a0853..ab0ac0b7fd8 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index c77b6d15fd6..14a6ebc0704 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 5f1ff971b9c..18775fd3a6d 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 1cb04797591..00be2cd7d0a 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index eb2594b63f0..89625ef0201 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 4cd548e7598..e33530a3da3 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 2d4f17944a8..07494f99565 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 1cbaa2aead2..b54bb07443d 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index de8dce9598a..3f49bf20e4d 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index d7f8c6efc00..f6ca38b94ff 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index ed18b76f703..4cad05bfebd 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 565061e9b06..7cff7301411 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 9991d7b56ee..4dabd537cd0 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 2fdcdb5f2b7..7ffe27b9917 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index f05ae31f0ef..67aa38b84be 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index b2c3445a189..f6680e9fc30 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 86c95a77dee..433786e5ef7 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 961c5b9248d..5e4547703d5 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 9a988bf51fb..59ef6477f35 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 4ee19b5b875..584318ad5a6 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 4986260dce1..f57e78aa15d 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 59814398a7a..1b2e08a7fdc 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index d904931b13d..060fb6d2f85 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 0abaeb9d842..d82aee90190 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index db6e82a9e27..167bcc02553 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 14a33dd76d4..f1e2a49f604 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 165c481acd2..f49683f3d5e 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index e368ec2d0ca..c5d1a9cb59d 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 6dbb3429387..fb646ee9c81 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 7f19c1c41cd..8b50020a76e 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 9ee5db4abd3..67cbf527815 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 00ae2bcbefd..5cf78248ba4 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index edb0977d673..13b5d595074 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index eee9f1fb2e8..6de2f900b2e 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index b1bb26d282e..ed3701914b5 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 0b42b663983..451149117c7 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 3cd12f413f0..7a122e5fea5 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 690d68e2661..49779d731ec 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index ad8c36477c6..a44a618764f 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index de3bef3a879..932a3c16eb0 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index f5f52d48599..e7e56d2a681 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 22ac6009290..929818b0597 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 34985709262..fbc748f2a6a 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 08b491cdb4d..6f710465463 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 56dc465655a..9e2abb298f9 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 3039743d9b4..a62436c787c 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 24c58f57e1a..fc976bcb966 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 00bcd707b6e..74403cc0db9 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 febb1951798..4e17ff0ad22 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.95.2 + 3.96.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.95.2 + 3.96.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 26857602d65..80e1f5a5187 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.95.2 + 3.96.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.2 + 3.96.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 586787fec55..2f8dedd57d2 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.95.2 + 3.96.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 12d1671ded7..a4080e42756 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index ba35043040a..f46f3c80e53 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 851b823c211..3534b444e53 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index e1082877cc9..883e50e89e3 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java index fac2e8525cf..d0c5585402e 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java @@ -161,6 +161,23 @@ public interface Sddc extends AutoCloseable { */ DowngradeHcxResponse downgradeHcx(DowngradeHcxRequest request); + /** + * Generate the VMware binary download information. + * + * @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 + * GenerateVmwareBinaryDownloadInfo API. + */ + GenerateVmwareBinaryDownloadInfoResponse generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request); + /** * Gets the specified SDDC's information. * @@ -274,6 +291,22 @@ ListSupportedVmwareSoftwareVersionsResponse listSupportedVmwareSoftwareVersions( */ RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request); + /** + * Retrieve the list of available VMware binaries for the SDDC. + * + * @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 + * RetrieveVmwareBinaries API. + */ + RetrieveVmwareBinariesResponse retrieveVmwareBinaries(RetrieveVmwareBinariesRequest request); + /** * Updates the specified SDDC. * diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java index 305bf6bd715..c25310d10ab 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java @@ -156,6 +156,24 @@ java.util.concurrent.Future downgradeHcx( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Generate the VMware binary download information. + * + * @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 + generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse> + handler); + /** * Gets the specified SDDC's information. * @@ -266,6 +284,22 @@ java.util.concurrent.Future retrievePassword( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieve the list of available VMware binaries for the SDDC. + * + * @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 retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request, + com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse> + handler); + /** * Updates the specified SDDC. * diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java index b7d6d30e693..15e8df81e87 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java @@ -254,6 +254,46 @@ public java.util.concurrent.Future downgradeHcx( .callAsync(handler); } + @Override + public java.util.concurrent.Future + generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse> + handler) { + + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + Objects.requireNonNull( + request.getGenerateVmwareBinaryDownloadInfoDetails(), + "generateVmwareBinaryDownloadInfoDetails is required"); + + return clientCall(request, GenerateVmwareBinaryDownloadInfoResponse::builder) + .logger(LOG, "generateVmwareBinaryDownloadInfo") + .serviceDetails( + "Sddc", + "GenerateVmwareBinaryDownloadInfo", + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GenerateVmwareBinaryDownloadInfo") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateVmwareBinaryDownloadInfoRequest::builder) + .basePath("/20230701") + .appendPathParam("sddcs") + .appendPathParam(request.getSddcId()) + .appendPathParam("actions") + .appendPathParam("generateVmwareBinaryDownloadInfo") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo.class, + GenerateVmwareBinaryDownloadInfoResponse.Builder::vmwareBinaryDownloadInfo) + .handleResponseHeaderString( + "opc-request-id", + GenerateVmwareBinaryDownloadInfoResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getSddc( GetSddcRequest request, @@ -501,6 +541,43 @@ public java.util.concurrent.Future retrievePassword( .callAsync(handler); } + @Override + public java.util.concurrent.Future retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse> + handler) { + + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + + return clientCall(request, RetrieveVmwareBinariesResponse::builder) + .logger(LOG, "retrieveVmwareBinaries") + .serviceDetails( + "Sddc", + "RetrieveVmwareBinaries", + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveVmwareBinaries") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RetrieveVmwareBinariesRequest::builder) + .basePath("/20230701") + .appendPathParam("sddcs") + .appendPathParam(request.getSddcId()) + .appendPathParam("actions") + .appendPathParam("retrieveVmwareBinaries") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection.class, + RetrieveVmwareBinariesResponse.Builder::vmwareBinaryCollection) + .handleResponseHeaderString( + "opc-request-id", RetrieveVmwareBinariesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", RetrieveVmwareBinariesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateSddc( UpdateSddcRequest request, diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java index bd1e17d6015..d4f55e09fe1 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java @@ -269,6 +269,42 @@ public DowngradeHcxResponse downgradeHcx(DowngradeHcxRequest request) { .callSync(); } + @Override + public GenerateVmwareBinaryDownloadInfoResponse generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request) { + + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + Objects.requireNonNull( + request.getGenerateVmwareBinaryDownloadInfoDetails(), + "generateVmwareBinaryDownloadInfoDetails is required"); + + return clientCall(request, GenerateVmwareBinaryDownloadInfoResponse::builder) + .logger(LOG, "generateVmwareBinaryDownloadInfo") + .serviceDetails( + "Sddc", + "GenerateVmwareBinaryDownloadInfo", + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GenerateVmwareBinaryDownloadInfo") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateVmwareBinaryDownloadInfoRequest::builder) + .basePath("/20230701") + .appendPathParam("sddcs") + .appendPathParam(request.getSddcId()) + .appendPathParam("actions") + .appendPathParam("generateVmwareBinaryDownloadInfo") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo.class, + GenerateVmwareBinaryDownloadInfoResponse.Builder::vmwareBinaryDownloadInfo) + .handleResponseHeaderString( + "opc-request-id", + GenerateVmwareBinaryDownloadInfoResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetSddcResponse getSddc(GetSddcRequest request) { @@ -500,6 +536,41 @@ public RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request .callSync(); } + @Override + public RetrieveVmwareBinariesResponse retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request) { + + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + + return clientCall(request, RetrieveVmwareBinariesResponse::builder) + .logger(LOG, "retrieveVmwareBinaries") + .serviceDetails( + "Sddc", + "RetrieveVmwareBinaries", + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveVmwareBinaries") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RetrieveVmwareBinariesRequest::builder) + .basePath("/20230701") + .appendPathParam("sddcs") + .appendPathParam(request.getSddcId()) + .appendPathParam("actions") + .appendPathParam("retrieveVmwareBinaries") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection.class, + RetrieveVmwareBinariesResponse.Builder::vmwareBinaryCollection) + .handleResponseHeaderString( + "opc-request-id", RetrieveVmwareBinariesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", RetrieveVmwareBinariesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public UpdateSddcResponse updateSddc(UpdateSddcRequest request) { diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java new file mode 100644 index 00000000000..d9ddf35bb6f --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java @@ -0,0 +1,139 @@ +/** + * 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.ocvp.model; + +/** + * The details for generating VMware Binary download information.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateVmwareBinaryDownloadInfoDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateVmwareBinaryDownloadInfoDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vmwareBinaryFileName"}) + public GenerateVmwareBinaryDownloadInfoDetails(String vmwareBinaryFileName) { + super(); + this.vmwareBinaryFileName = vmwareBinaryFileName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmwareBinaryFileName") + private String vmwareBinaryFileName; + + /** + * The name of the VMware binary file. + * + * @param vmwareBinaryFileName the value to set + * @return this builder + */ + public Builder vmwareBinaryFileName(String vmwareBinaryFileName) { + this.vmwareBinaryFileName = vmwareBinaryFileName; + this.__explicitlySet__.add("vmwareBinaryFileName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateVmwareBinaryDownloadInfoDetails build() { + GenerateVmwareBinaryDownloadInfoDetails model = + new GenerateVmwareBinaryDownloadInfoDetails(this.vmwareBinaryFileName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateVmwareBinaryDownloadInfoDetails model) { + if (model.wasPropertyExplicitlySet("vmwareBinaryFileName")) { + this.vmwareBinaryFileName(model.getVmwareBinaryFileName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmwareBinaryFileName") + private final String vmwareBinaryFileName; + + /** + * The name of the VMware binary file. + * + * @return the value + */ + public String getVmwareBinaryFileName() { + return vmwareBinaryFileName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateVmwareBinaryDownloadInfoDetails("); + sb.append("super=").append(super.toString()); + sb.append("vmwareBinaryFileName=").append(String.valueOf(this.vmwareBinaryFileName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateVmwareBinaryDownloadInfoDetails)) { + return false; + } + + GenerateVmwareBinaryDownloadInfoDetails other = (GenerateVmwareBinaryDownloadInfoDetails) o; + return java.util.Objects.equals(this.vmwareBinaryFileName, other.vmwareBinaryFileName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.vmwareBinaryFileName == null + ? 43 + : this.vmwareBinaryFileName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java new file mode 100644 index 00000000000..97177485697 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java @@ -0,0 +1,239 @@ +/** + * 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.ocvp.model; + +/** + * A third party VMware Binary file.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmwareBinary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmwareBinary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileName", "description", "sizeInBytes", "checksum"}) + public VmwareBinary(String fileName, String description, Long sizeInBytes, String checksum) { + super(); + this.fileName = fileName; + this.description = description; + this.sizeInBytes = sizeInBytes; + this.checksum = checksum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The name of the VMware binary file. + * + * @param fileName the value to set + * @return this builder + */ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** Description of the VMware binary. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the VMware binary. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Size of the VMware binary file in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + /** + * Size of the VMware binary file in bytes. + * + * @param sizeInBytes the value to set + * @return this builder + */ + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + /** Base64-encoded SHA256 hash of the object data. */ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private String checksum; + + /** + * Base64-encoded SHA256 hash of the object data. + * + * @param checksum the value to set + * @return this builder + */ + public Builder checksum(String checksum) { + this.checksum = checksum; + this.__explicitlySet__.add("checksum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmwareBinary build() { + VmwareBinary model = + new VmwareBinary( + this.fileName, this.description, this.sizeInBytes, this.checksum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmwareBinary model) { + if (model.wasPropertyExplicitlySet("fileName")) { + this.fileName(model.getFileName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("checksum")) { + this.checksum(model.getChecksum()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private final String fileName; + + /** + * The name of the VMware binary file. + * + * @return the value + */ + public String getFileName() { + return fileName; + } + + /** Description of the VMware binary. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the VMware binary. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Size of the VMware binary file in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Long sizeInBytes; + + /** + * Size of the VMware binary file in bytes. + * + * @return the value + */ + public Long getSizeInBytes() { + return sizeInBytes; + } + + /** Base64-encoded SHA256 hash of the object data. */ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private final String checksum; + + /** + * Base64-encoded SHA256 hash of the object data. + * + * @return the value + */ + public String getChecksum() { + return checksum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmwareBinary("); + sb.append("super=").append(super.toString()); + sb.append("fileName=").append(String.valueOf(this.fileName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(", checksum=").append(String.valueOf(this.checksum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmwareBinary)) { + return false; + } + + VmwareBinary other = (VmwareBinary) o; + return java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) + && java.util.Objects.equals(this.checksum, other.checksum) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + (this.checksum == null ? 43 : this.checksum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java new file mode 100644 index 00000000000..e76d562a4b8 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.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.ocvp.model; + +/** + * A list of third party VMware binary files.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmwareBinaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmwareBinaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmwareBinaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of third party VMware binary files. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of third party VMware binary files. + * + * @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 VmwareBinaryCollection build() { + VmwareBinaryCollection model = new VmwareBinaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmwareBinaryCollection 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 third party VMware binary files. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of third party VMware binary files. + * + * @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("VmwareBinaryCollection("); + 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 VmwareBinaryCollection)) { + return false; + } + + VmwareBinaryCollection other = (VmwareBinaryCollection) 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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java new file mode 100644 index 00000000000..3aac7e8d4bf --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java @@ -0,0 +1,225 @@ +/** + * 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.ocvp.model; + +/** + * The VMware binary download.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmwareBinaryDownloadInfo.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmwareBinaryDownloadInfo + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileName", "url", "timeExpires"}) + public VmwareBinaryDownloadInfo(String fileName, String url, java.util.Date timeExpires) { + super(); + this.fileName = fileName; + this.url = url; + this.timeExpires = timeExpires; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The name of the VMware binary file. + * + * @param fileName the value to set + * @return this builder + */ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** The URL to download the VMware binary. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * The URL to download the VMware binary. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** + * The expiration date for the URL, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). After this date the URL will no longer be + * valid. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private java.util.Date timeExpires; + + /** + * The expiration date for the URL, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). After this date the URL will no longer be + * valid. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeExpires the value to set + * @return this builder + */ + public Builder timeExpires(java.util.Date timeExpires) { + this.timeExpires = timeExpires; + this.__explicitlySet__.add("timeExpires"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmwareBinaryDownloadInfo build() { + VmwareBinaryDownloadInfo model = + new VmwareBinaryDownloadInfo(this.fileName, this.url, this.timeExpires); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmwareBinaryDownloadInfo model) { + if (model.wasPropertyExplicitlySet("fileName")) { + this.fileName(model.getFileName()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("timeExpires")) { + this.timeExpires(model.getTimeExpires()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the VMware binary file. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private final String fileName; + + /** + * The name of the VMware binary file. + * + * @return the value + */ + public String getFileName() { + return fileName; + } + + /** The URL to download the VMware binary. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * The URL to download the VMware binary. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** + * The expiration date for the URL, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). After this date the URL will no longer be + * valid. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private final java.util.Date timeExpires; + + /** + * The expiration date for the URL, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). After this date the URL will no longer be + * valid. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeExpires() { + return timeExpires; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmwareBinaryDownloadInfo("); + sb.append("super=").append(super.toString()); + sb.append("fileName=").append(String.valueOf(this.fileName)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", timeExpires=").append(String.valueOf(this.timeExpires)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmwareBinaryDownloadInfo)) { + return false; + } + + VmwareBinaryDownloadInfo other = (VmwareBinaryDownloadInfo) o; + return java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.timeExpires, other.timeExpires) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.timeExpires == null ? 43 : this.timeExpires.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java new file mode 100644 index 00000000000..eb2c73a03f8 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java @@ -0,0 +1,335 @@ +/** + * 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.ocvp.requests; + +import com.oracle.bmc.ocvp.model.*; +/** + * Example: Click here to see how to use + * GenerateVmwareBinaryDownloadInfoRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateVmwareBinaryDownloadInfoRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + */ + private String sddcId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + */ + public String getSddcId() { + return sddcId; + } + /** The details for generating VMware Binary download information. */ + private com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails; + + /** The details for generating VMware Binary download information. */ + public com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + getGenerateVmwareBinaryDownloadInfoDetails() { + return generateVmwareBinaryDownloadInfoDetails; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails getBody$() { + return generateVmwareBinaryDownloadInfoDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateVmwareBinaryDownloadInfoRequest, + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails> { + 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 + * SDDC. + */ + private String sddcId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + * + * @param sddcId the value to set + * @return this builder instance + */ + public Builder sddcId(String sddcId) { + this.sddcId = sddcId; + return this; + } + + /** The details for generating VMware Binary download information. */ + private com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails = null; + + /** + * The details for generating VMware Binary download information. + * + * @param generateVmwareBinaryDownloadInfoDetails the value to set + * @return this builder instance + */ + public Builder generateVmwareBinaryDownloadInfoDetails( + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails) { + this.generateVmwareBinaryDownloadInfoDetails = generateVmwareBinaryDownloadInfoDetails; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateVmwareBinaryDownloadInfoRequest o) { + sddcId(o.getSddcId()); + generateVmwareBinaryDownloadInfoDetails(o.getGenerateVmwareBinaryDownloadInfoDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateVmwareBinaryDownloadInfoRequest 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 GenerateVmwareBinaryDownloadInfoRequest + */ + public GenerateVmwareBinaryDownloadInfoRequest build() { + GenerateVmwareBinaryDownloadInfoRequest 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.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails body) { + generateVmwareBinaryDownloadInfoDetails(body); + return this; + } + + /** + * Build the instance of GenerateVmwareBinaryDownloadInfoRequest 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 GenerateVmwareBinaryDownloadInfoRequest + */ + public GenerateVmwareBinaryDownloadInfoRequest buildWithoutInvocationCallback() { + GenerateVmwareBinaryDownloadInfoRequest request = + new GenerateVmwareBinaryDownloadInfoRequest(); + request.sddcId = sddcId; + request.generateVmwareBinaryDownloadInfoDetails = + generateVmwareBinaryDownloadInfoDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateVmwareBinaryDownloadInfoRequest(sddcId, + // generateVmwareBinaryDownloadInfoDetails, 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() + .sddcId(sddcId) + .generateVmwareBinaryDownloadInfoDetails(generateVmwareBinaryDownloadInfoDetails) + .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(",sddcId=").append(String.valueOf(this.sddcId)); + sb.append(",generateVmwareBinaryDownloadInfoDetails=") + .append(String.valueOf(this.generateVmwareBinaryDownloadInfoDetails)); + 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 GenerateVmwareBinaryDownloadInfoRequest)) { + return false; + } + + GenerateVmwareBinaryDownloadInfoRequest other = (GenerateVmwareBinaryDownloadInfoRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.sddcId, other.sddcId) + && java.util.Objects.equals( + this.generateVmwareBinaryDownloadInfoDetails, + other.generateVmwareBinaryDownloadInfoDetails) + && 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.sddcId == null ? 43 : this.sddcId.hashCode()); + result = + (result * PRIME) + + (this.generateVmwareBinaryDownloadInfoDetails == null + ? 43 + : this.generateVmwareBinaryDownloadInfoDetails.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-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java new file mode 100644 index 00000000000..a4c37872d7b --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java @@ -0,0 +1,347 @@ +/** + * 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.ocvp.requests; + +import com.oracle.bmc.ocvp.model.*; +/** + * Example: Click here to see how to use + * RetrieveVmwareBinariesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class RetrieveVmwareBinariesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + */ + private String sddcId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + */ + public String getSddcId() { + return sddcId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RetrieveVmwareBinariesRequest, 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 + * SDDC. + */ + private String sddcId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * SDDC. + * + * @param sddcId the value to set + * @return this builder instance + */ + public Builder sddcId(String sddcId) { + this.sddcId = sddcId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RetrieveVmwareBinariesRequest o) { + sddcId(o.getSddcId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RetrieveVmwareBinariesRequest 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 RetrieveVmwareBinariesRequest + */ + public RetrieveVmwareBinariesRequest build() { + RetrieveVmwareBinariesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RetrieveVmwareBinariesRequest 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 RetrieveVmwareBinariesRequest + */ + public RetrieveVmwareBinariesRequest buildWithoutInvocationCallback() { + RetrieveVmwareBinariesRequest request = new RetrieveVmwareBinariesRequest(); + request.sddcId = sddcId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RetrieveVmwareBinariesRequest(sddcId, limit, page, 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() + .sddcId(sddcId) + .limit(limit) + .page(page) + .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(",sddcId=").append(String.valueOf(this.sddcId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + 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 RetrieveVmwareBinariesRequest)) { + return false; + } + + RetrieveVmwareBinariesRequest other = (RetrieveVmwareBinariesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.sddcId, other.sddcId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && 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.sddcId == null ? 43 : this.sddcId.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java new file mode 100644 index 00000000000..410c10851f3 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java @@ -0,0 +1,183 @@ +/** + * 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.ocvp.responses; + +import com.oracle.bmc.ocvp.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateVmwareBinaryDownloadInfoResponse 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 VmwareBinaryDownloadInfo} instance. */ + private com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo; + + /** + * The returned {@code VmwareBinaryDownloadInfo} instance. + * + * @return the value + */ + public com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo getVmwareBinaryDownloadInfo() { + return vmwareBinaryDownloadInfo; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "vmwareBinaryDownloadInfo" + }) + private GenerateVmwareBinaryDownloadInfoResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.vmwareBinaryDownloadInfo = vmwareBinaryDownloadInfo; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GenerateVmwareBinaryDownloadInfoResponse> { + 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 VmwareBinaryDownloadInfo} instance. */ + private com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo; + + /** + * The returned {@code VmwareBinaryDownloadInfo} instance. + * + * @param vmwareBinaryDownloadInfo the value to set + * @return this builder + */ + public Builder vmwareBinaryDownloadInfo( + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo) { + this.vmwareBinaryDownloadInfo = vmwareBinaryDownloadInfo; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateVmwareBinaryDownloadInfoResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + vmwareBinaryDownloadInfo(o.getVmwareBinaryDownloadInfo()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateVmwareBinaryDownloadInfoResponse build() { + return new GenerateVmwareBinaryDownloadInfoResponse( + __httpStatusCode__, headers, opcRequestId, vmwareBinaryDownloadInfo); + } + } + + /** + * 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(",vmwareBinaryDownloadInfo=").append(String.valueOf(vmwareBinaryDownloadInfo)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateVmwareBinaryDownloadInfoResponse)) { + return false; + } + + GenerateVmwareBinaryDownloadInfoResponse other = + (GenerateVmwareBinaryDownloadInfoResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.vmwareBinaryDownloadInfo, other.vmwareBinaryDownloadInfo); + } + + @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.vmwareBinaryDownloadInfo == null + ? 43 + : this.vmwareBinaryDownloadInfo.hashCode()); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java new file mode 100644 index 00000000000..27b0ae8c02f --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.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.ocvp.responses; + +import com.oracle.bmc.ocvp.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class RetrieveVmwareBinariesResponse 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 list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VmwareBinaryCollection} instance. */ + private com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection; + + /** + * The returned {@code VmwareBinaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.ocvp.model.VmwareBinaryCollection getVmwareBinaryCollection() { + return vmwareBinaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmwareBinaryCollection" + }) + private RetrieveVmwareBinariesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmwareBinaryCollection = vmwareBinaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RetrieveVmwareBinariesResponse> { + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VmwareBinaryCollection} instance. */ + private com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection; + + /** + * The returned {@code VmwareBinaryCollection} instance. + * + * @param vmwareBinaryCollection the value to set + * @return this builder + */ + public Builder vmwareBinaryCollection( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection) { + this.vmwareBinaryCollection = vmwareBinaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RetrieveVmwareBinariesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmwareBinaryCollection(o.getVmwareBinaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RetrieveVmwareBinariesResponse build() { + return new RetrieveVmwareBinariesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, vmwareBinaryCollection); + } + } + + /** + * 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(",vmwareBinaryCollection=").append(String.valueOf(vmwareBinaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RetrieveVmwareBinariesResponse)) { + return false; + } + + RetrieveVmwareBinariesResponse other = (RetrieveVmwareBinariesResponse) 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.vmwareBinaryCollection, other.vmwareBinaryCollection); + } + + @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.vmwareBinaryCollection == null + ? 43 + : this.vmwareBinaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json b/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json index cf51cb3a72a..d51cc1cb41e 100644 --- a/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json +++ b/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json @@ -689,6 +689,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.ocvp.model.HcxLicenseStatus", @@ -1243,6 +1257,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.ocvp.model.VsphereLicense", diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index aca38cba05b..c2b626f0551 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index d7f7fe3e2b9..ad725f6341d 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 34b865b91f4..2114c263cf4 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 047906f326d..5f8b1fec9cb 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 638f1d33d0c..71447c0395b 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 0c0f10b3d4c..ca8e81511a0 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 038a561ad41..129b979507f 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index e845144ffd6..c87f39d13ea 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 3aff96f97e3..3505cf4730e 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 5046a9d7717..0124a4bd6ad 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 99df1825e02..d904342d608 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 9816833ed36..4a2ee2f297d 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 5af074ab842..8747ca00275 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 7475c62a914..7a3fe81b49b 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 b08a6de27d7..e78940916df 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.95.2 + 3.96.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.95.2 + 3.96.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 972e6221d08..b3fb4f89174 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.95.2 + 3.96.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.95.2 + 3.96.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.2 + 3.96.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index ac26b1955f2..fe451f214e4 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.95.2 + 3.96.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.95.2 + 3.96.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.2 + 3.96.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 5ab51112ea3..5d24d0749df 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.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 86398784dec..4fa9fb282bd 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index fbb57e81867..4cb8b15cd10 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java index 4f03cc9e8ab..0b4f88154d1 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java @@ -40,6 +40,7 @@ public final class Backup extends com.oracle.bmc.http.client.internal.Explicitly "lastAcceptedRequestToken", "lastCompletedRequestToken", "copyStatus", + "kmsKeyId", "freeformTags", "definedTags", "systemTags" @@ -63,6 +64,7 @@ public Backup( String lastAcceptedRequestToken, String lastCompletedRequestToken, java.util.List copyStatus, + String kmsKeyId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -85,6 +87,7 @@ public Backup( this.lastAcceptedRequestToken = lastAcceptedRequestToken; this.lastCompletedRequestToken = lastCompletedRequestToken; this.copyStatus = copyStatus; + this.kmsKeyId = kmsKeyId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -396,6 +399,21 @@ public Builder copyStatus(java.util.List copyStatus) { this.__explicitlySet__.add("copyStatus"); return this; } + /** The OCID of the master encryption key for the backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The OCID of the master encryption key for the backup. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + 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"}} @@ -479,6 +497,7 @@ public Backup build() { this.lastAcceptedRequestToken, this.lastCompletedRequestToken, this.copyStatus, + this.kmsKeyId, this.freeformTags, this.definedTags, this.systemTags); @@ -544,6 +563,9 @@ public Builder copy(Backup model) { if (model.wasPropertyExplicitlySet("copyStatus")) { this.copyStatus(model.getCopyStatus()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -934,6 +956,19 @@ public java.util.List getCopyStatus() { return copyStatus; } + /** The OCID of the master encryption key for the backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the master encryption key for the backup. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -1020,6 +1055,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lastCompletedRequestToken=") .append(String.valueOf(this.lastCompletedRequestToken)); sb.append(", copyStatus=").append(String.valueOf(this.copyStatus)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1057,6 +1093,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.lastCompletedRequestToken, other.lastCompletedRequestToken) && java.util.Objects.equals(this.copyStatus, other.copyStatus) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1111,6 +1148,7 @@ public int hashCode() { ? 43 : this.lastCompletedRequestToken.hashCode()); result = (result * PRIME) + (this.copyStatus == null ? 43 : this.copyStatus.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.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-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java index f176ffcbf74..cfc378e4145 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java @@ -23,13 +23,17 @@ public final class BackupCopyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions"}) + @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions", "kmsKeyIds"}) public BackupCopyDetails( - String compartmentId, Integer retentionPeriod, java.util.List regions) { + String compartmentId, + Integer retentionPeriod, + java.util.List regions, + java.util.List kmsKeyIds) { super(); this.compartmentId = compartmentId; this.retentionPeriod = retentionPeriod; this.regions = regions; + this.kmsKeyIds = kmsKeyIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -79,13 +83,29 @@ public Builder regions(java.util.List regions) { this.__explicitlySet__.add("regions"); return this; } + /** List of key ids of the remote regions */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * + * @param kmsKeyIds the value to set + * @return this builder + */ + public Builder kmsKeyIds(java.util.List kmsKeyIds) { + this.kmsKeyIds = kmsKeyIds; + this.__explicitlySet__.add("kmsKeyIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public BackupCopyDetails build() { BackupCopyDetails model = - new BackupCopyDetails(this.compartmentId, this.retentionPeriod, this.regions); + new BackupCopyDetails( + this.compartmentId, this.retentionPeriod, this.regions, this.kmsKeyIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -103,6 +123,9 @@ public Builder copy(BackupCopyDetails model) { if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } + if (model.wasPropertyExplicitlySet("kmsKeyIds")) { + this.kmsKeyIds(model.getKmsKeyIds()); + } return this; } } @@ -155,6 +178,19 @@ public java.util.List getRegions() { return regions; } + /** List of key ids of the remote regions */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private final java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * + * @return the value + */ + public java.util.List getKmsKeyIds() { + return kmsKeyIds; + } + @Override public String toString() { return this.toString(true); @@ -173,6 +209,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); sb.append(", regions=").append(String.valueOf(this.regions)); + sb.append(", kmsKeyIds=").append(String.valueOf(this.kmsKeyIds)); sb.append(")"); return sb.toString(); } @@ -190,6 +227,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) && java.util.Objects.equals(this.regions, other.regions) + && java.util.Objects.equals(this.kmsKeyIds, other.kmsKeyIds) && super.equals(other); } @@ -204,6 +242,7 @@ public int hashCode() { (result * PRIME) + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); + result = (result * PRIME) + (this.kmsKeyIds == null ? 43 : this.kmsKeyIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java index 4e5680db00f..c6aa523f3e2 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java @@ -22,13 +22,17 @@ public final class BackupCopyPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions"}) + @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions", "kmsKeyIds"}) public BackupCopyPolicy( - String compartmentId, Integer retentionPeriod, java.util.List regions) { + String compartmentId, + Integer retentionPeriod, + java.util.List regions, + java.util.List kmsKeyIds) { super(); this.compartmentId = compartmentId; this.retentionPeriod = retentionPeriod; this.regions = regions; + this.kmsKeyIds = kmsKeyIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -78,13 +82,29 @@ public Builder regions(java.util.List regions) { this.__explicitlySet__.add("regions"); return this; } + /** List of key ids of the remote regions */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * + * @param kmsKeyIds the value to set + * @return this builder + */ + public Builder kmsKeyIds(java.util.List kmsKeyIds) { + this.kmsKeyIds = kmsKeyIds; + this.__explicitlySet__.add("kmsKeyIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public BackupCopyPolicy build() { BackupCopyPolicy model = - new BackupCopyPolicy(this.compartmentId, this.retentionPeriod, this.regions); + new BackupCopyPolicy( + this.compartmentId, this.retentionPeriod, this.regions, this.kmsKeyIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -102,6 +122,9 @@ public Builder copy(BackupCopyPolicy model) { if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } + if (model.wasPropertyExplicitlySet("kmsKeyIds")) { + this.kmsKeyIds(model.getKmsKeyIds()); + } return this; } } @@ -154,6 +177,19 @@ public java.util.List getRegions() { return regions; } + /** List of key ids of the remote regions */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private final java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * + * @return the value + */ + public java.util.List getKmsKeyIds() { + return kmsKeyIds; + } + @Override public String toString() { return this.toString(true); @@ -172,6 +208,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); sb.append(", regions=").append(String.valueOf(this.regions)); + sb.append(", kmsKeyIds=").append(String.valueOf(this.kmsKeyIds)); sb.append(")"); return sb.toString(); } @@ -189,6 +226,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) && java.util.Objects.equals(this.regions, other.regions) + && java.util.Objects.equals(this.kmsKeyIds, other.kmsKeyIds) && super.equals(other); } @@ -203,6 +241,7 @@ public int hashCode() { (result * PRIME) + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); + result = (result * PRIME) + (this.kmsKeyIds == null ? 43 : this.kmsKeyIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java index c9bb585de41..001a9d31771 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java @@ -44,6 +44,15 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } /** * Guaranteed input/output storage requests per second (IOPS) available to the database * system. @@ -70,7 +79,10 @@ public Builder iops(Long iops) { public OciOptimizedStorageDetails build() { OciOptimizedStorageDetails model = new OciOptimizedStorageDetails( - this.isRegionallyDurable, this.availabilityDomain, this.iops); + this.isRegionallyDurable, + this.availabilityDomain, + this.kmsKeyId, + this.iops); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -85,6 +97,9 @@ public Builder copy(OciOptimizedStorageDetails model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } if (model.wasPropertyExplicitlySet("iops")) { this.iops(model.getIops()); } @@ -103,8 +118,8 @@ public Builder toBuilder() { @Deprecated public OciOptimizedStorageDetails( - Boolean isRegionallyDurable, String availabilityDomain, Long iops) { - super(isRegionallyDurable, availabilityDomain); + Boolean isRegionallyDurable, String availabilityDomain, String kmsKeyId, Long iops) { + super(isRegionallyDurable, availabilityDomain, kmsKeyId); this.iops = iops; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java index d26d07e9c93..2b8c3fc3de5 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java @@ -30,11 +30,13 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public class StorageDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isRegionallyDurable", "availabilityDomain"}) - protected StorageDetails(Boolean isRegionallyDurable, String availabilityDomain) { + @java.beans.ConstructorProperties({"isRegionallyDurable", "availabilityDomain", "kmsKeyId"}) + protected StorageDetails( + Boolean isRegionallyDurable, String availabilityDomain, String kmsKeyId) { super(); this.isRegionallyDurable = isRegionallyDurable; this.availabilityDomain = availabilityDomain; + this.kmsKeyId = kmsKeyId; } /** @@ -77,6 +79,23 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +113,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isRegionallyDurable=").append(String.valueOf(this.isRegionallyDurable)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(")"); return sb.toString(); } @@ -110,6 +130,7 @@ public boolean equals(Object o) { StorageDetails other = (StorageDetails) o; return java.util.Objects.equals(this.isRegionallyDurable, other.isRegionallyDurable) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && super.equals(other); } @@ -127,6 +148,7 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java index 8428ecc18cb..bb98741215d 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java @@ -23,10 +23,11 @@ public final class UpdateStorageDetailsParams extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"iops"}) - public UpdateStorageDetailsParams(Long iops) { + @java.beans.ConstructorProperties({"iops", "kmsKeyId"}) + public UpdateStorageDetailsParams(Long iops, String kmsKeyId) { super(); this.iops = iops; + this.kmsKeyId = kmsKeyId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -50,12 +51,32 @@ public Builder iops(Long iops) { this.__explicitlySet__.add("iops"); return this; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateStorageDetailsParams build() { - UpdateStorageDetailsParams model = new UpdateStorageDetailsParams(this.iops); + UpdateStorageDetailsParams model = + new UpdateStorageDetailsParams(this.iops, this.kmsKeyId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -67,6 +88,9 @@ public Builder copy(UpdateStorageDetailsParams model) { if (model.wasPropertyExplicitlySet("iops")) { this.iops(model.getIops()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } return this; } } @@ -97,6 +121,23 @@ public Long getIops() { return iops; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database + * system. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + @Override public String toString() { return this.toString(true); @@ -113,6 +154,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateStorageDetailsParams("); sb.append("super=").append(super.toString()); sb.append("iops=").append(String.valueOf(this.iops)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(")"); return sb.toString(); } @@ -127,7 +169,9 @@ public boolean equals(Object o) { } UpdateStorageDetailsParams other = (UpdateStorageDetailsParams) o; - return java.util.Objects.equals(this.iops, other.iops) && super.equals(other); + return java.util.Objects.equals(this.iops, other.iops) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && super.equals(other); } @Override @@ -135,6 +179,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.iops == null ? 43 : this.iops.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 69120bf033a..b8c9ea116c8 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 556671c27f7..9c4bc40fb54 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 9fd81cbe820..c337264e36e 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 9cacbaae3c5..ba512ca1523 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index d48448084aa..5b050f07850 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 2eea74a6ad4..37bf93c1590 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 6196f55b862..7fdaa8d6a15 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index ff10c7e7ecf..beabdbfeadc 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 88d91587315..1c362f3d17e 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 1bd10c4087e..d93316c88a2 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 643973a9912..9d9c39c7f8b 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index a8e5a35ee65..9a422381c10 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java index 0aa33e01c81..9b2005c6996 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java @@ -81,6 +81,24 @@ public interface PartnerIntegeration extends AutoCloseable { */ ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionRequest request); + /** + * Deprecated. This endpoint has moved permanently to + * `/partners/subscriptions/{subscriptionId}/actions/activate`. + * + * @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 + * ActivateSubscriptionDeprecated API. + */ + ActivateSubscriptionDeprecatedResponse activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request); + /** * Lists marketplace publisher partner info for a compartment. * @@ -112,6 +130,23 @@ public interface PartnerIntegeration extends AutoCloseable { */ ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsRequest request); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions`. + * + * @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 + * ListingSubscriptionsDeprecated API. + */ + ListingSubscriptionsDeprecatedResponse listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request); + /** * This API returns the subscription details by resolving JWT token to corresponding * subscription and move its state to Pending Activation state. @@ -129,9 +164,27 @@ public interface PartnerIntegeration extends AutoCloseable { */ ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionRequest request); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions/actions/resolve`. + * It returns a 301 response and does not resolve a subscription. + * + * @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 + * ResolveSubscriptionDeprecated API. + */ + ResolveSubscriptionDeprecatedResponse resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request); + /** * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file must not - * exceed 50 MB or 10,000 rows and must include required usage columns. + * exceed 50 MB or 30,000 rows and must include required usage columns. * *

Note: This operation consumes a stream. * diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java index 76c552d5b45..9991393cf2c 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java @@ -79,6 +79,25 @@ java.util.concurrent.Future activateSubscription( ActivateSubscriptionRequest, ActivateSubscriptionResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to + * `/partners/subscriptions/{subscriptionId}/actions/activate`. + * + * @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 + activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse> + handler); + /** * Lists marketplace publisher partner info for a compartment. * @@ -110,6 +129,24 @@ java.util.concurrent.Future listingSubscriptions( ListingSubscriptionsRequest, ListingSubscriptionsResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions`. + * + * @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 + listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse> + handler); + /** * This API returns the subscription details by resolving JWT token to corresponding * subscription and move its state to Pending Activation state. @@ -127,9 +164,28 @@ java.util.concurrent.Future resolveSubscription( ResolveSubscriptionRequest, ResolveSubscriptionResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions/actions/resolve`. + * It returns a 301 response and does not resolve a subscription. + * + * @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 + resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, + ResolveSubscriptionDeprecatedResponse> + handler); + /** * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file must not - * exceed 50 MB or 10,000 rows and must include required usage columns. + * exceed 50 MB or 30,000 rows and must include required usage columns. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java index 3bf70a9dd2f..00c166bdf25 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java @@ -136,6 +136,51 @@ public java.util.concurrent.Future activateSubscri .callAsync(handler); } + @Override + @Deprecated + public java.util.concurrent.Future + activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse> + handler) { + + Validate.notBlank(request.getSubscriptionId(), "subscriptionId must not be blank"); + Objects.requireNonNull( + request.getActivateSubscriptionDetails(), + "activateSubscriptionDetails is required"); + + return clientCall(request, ActivateSubscriptionDeprecatedResponse::builder) + .logger(LOG, "activateSubscriptionDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ActivateSubscriptionDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscriptionDeprecated") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateSubscriptionDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendPathParam(request.getSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("activate") + .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.self.model.ActivateSubscriptionResult.class, + ActivateSubscriptionDeprecatedResponse.Builder::activateSubscriptionResult) + .handleResponseHeaderString( + "opc-request-id", + ActivateSubscriptionDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ActivateSubscriptionDeprecatedResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listPartners( ListPartnersRequest request, @@ -207,6 +252,49 @@ public java.util.concurrent.Future listingSubscrip .callAsync(handler); } + @Override + @Deprecated + public java.util.concurrent.Future + listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse> + handler) { + Objects.requireNonNull(request.getListingId(), "listingId is required"); + + return clientCall(request, ListingSubscriptionsDeprecatedResponse::builder) + .logger(LOG, "listingSubscriptionsDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ListingSubscriptionsDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptionsDeprecated") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListingSubscriptionsDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendQueryParam("listingId", request.getListingId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.self.model.ListingSubscriptionsCollection.class, + ListingSubscriptionsDeprecatedResponse.Builder + ::listingSubscriptionsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListingSubscriptionsDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListingSubscriptionsDeprecatedResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future resolveSubscription( ResolveSubscriptionRequest request, @@ -243,6 +331,47 @@ public java.util.concurrent.Future resolveSubscript .callAsync(handler); } + @Override + @Deprecated + public java.util.concurrent.Future + resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, + ResolveSubscriptionDeprecatedResponse> + handler) { + Objects.requireNonNull( + request.getResolveSubscriptionDetails(), "resolveSubscriptionDetails is required"); + + return clientCall(request, ResolveSubscriptionDeprecatedResponse::builder) + .logger(LOG, "resolveSubscriptionDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ResolveSubscriptionDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscriptionDeprecated") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ResolveSubscriptionDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendPathParam("actions") + .appendPathParam("resolve") + .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.self.model.PartnerSubscription.class, + ResolveSubscriptionDeprecatedResponse.Builder::partnerSubscription) + .handleResponseHeaderString( + "opc-request-id", + ResolveSubscriptionDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ResolveSubscriptionDeprecatedResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future submitSubscriptionUsageBatch( diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java index 74977d958aa..22e32e2506f 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java @@ -127,6 +127,47 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq .callSync(); } + @Override + @Deprecated + public ActivateSubscriptionDeprecatedResponse activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request) { + + Validate.notBlank(request.getSubscriptionId(), "subscriptionId must not be blank"); + Objects.requireNonNull( + request.getActivateSubscriptionDetails(), + "activateSubscriptionDetails is required"); + + return clientCall(request, ActivateSubscriptionDeprecatedResponse::builder) + .logger(LOG, "activateSubscriptionDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ActivateSubscriptionDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscriptionDeprecated") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateSubscriptionDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendPathParam(request.getSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("activate") + .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.self.model.ActivateSubscriptionResult.class, + ActivateSubscriptionDeprecatedResponse.Builder::activateSubscriptionResult) + .handleResponseHeaderString( + "opc-request-id", + ActivateSubscriptionDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ActivateSubscriptionDeprecatedResponse.Builder::etag) + .callSync(); + } + @Override public ListPartnersResponse listPartners(ListPartnersRequest request) { @@ -193,6 +234,45 @@ public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsReq .callSync(); } + @Override + @Deprecated + public ListingSubscriptionsDeprecatedResponse listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request) { + Objects.requireNonNull(request.getListingId(), "listingId is required"); + + return clientCall(request, ListingSubscriptionsDeprecatedResponse::builder) + .logger(LOG, "listingSubscriptionsDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ListingSubscriptionsDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptionsDeprecated") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListingSubscriptionsDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendQueryParam("listingId", request.getListingId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.self.model.ListingSubscriptionsCollection.class, + ListingSubscriptionsDeprecatedResponse.Builder + ::listingSubscriptionsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListingSubscriptionsDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListingSubscriptionsDeprecatedResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionRequest request) { Objects.requireNonNull( @@ -226,6 +306,43 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques .callSync(); } + @Override + @Deprecated + public ResolveSubscriptionDeprecatedResponse resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request) { + Objects.requireNonNull( + request.getResolveSubscriptionDetails(), "resolveSubscriptionDetails is required"); + + return clientCall(request, ResolveSubscriptionDeprecatedResponse::builder) + .logger(LOG, "resolveSubscriptionDeprecated") + .serviceDetails( + "PartnerIntegeration", + "ResolveSubscriptionDeprecated", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscriptionDeprecated") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ResolveSubscriptionDeprecatedRequest::builder) + .basePath("/20260129") + .appendPathParam("partner") + .appendPathParam("subscriptions") + .appendPathParam("actions") + .appendPathParam("resolve") + .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.self.model.PartnerSubscription.class, + ResolveSubscriptionDeprecatedResponse.Builder::partnerSubscription) + .handleResponseHeaderString( + "opc-request-id", + ResolveSubscriptionDeprecatedResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ResolveSubscriptionDeprecatedResponse.Builder::etag) + .callSync(); + } + @Override public SubmitSubscriptionUsageBatchResponse submitSubscriptionUsageBatch( SubmitSubscriptionUsageBatchRequest request) { diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java index 953f5e7a178..87b42f6258a 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java @@ -272,4 +272,130 @@ public ListingSubscriptionsResponse apply(ListingSubscriptionsRequest request) { } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listingSubscriptionsDeprecated 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 + listingSubscriptionsDeprecatedResponseIterator( + final ListingSubscriptionsDeprecatedRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListingSubscriptionsDeprecatedRequest.Builder, + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>( + new java.util.function.Supplier() { + @Override + public ListingSubscriptionsDeprecatedRequest.Builder get() { + return ListingSubscriptionsDeprecatedRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder>, + ListingSubscriptionsDeprecatedRequest>() { + @Override + public ListingSubscriptionsDeprecatedRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.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< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>() { + @Override + public ListingSubscriptionsDeprecatedResponse apply( + ListingSubscriptionsDeprecatedRequest request) { + return client.listingSubscriptionsDeprecated(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.self.model.ListingSubscriptionSummary} objects contained in responses from the + * listingSubscriptionsDeprecated 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.self.model.ListingSubscriptionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listingSubscriptionsDeprecatedRecordIterator( + final ListingSubscriptionsDeprecatedRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListingSubscriptionsDeprecatedRequest.Builder, + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse, + com.oracle.bmc.self.model.ListingSubscriptionSummary>( + new java.util.function.Supplier() { + @Override + public ListingSubscriptionsDeprecatedRequest.Builder get() { + return ListingSubscriptionsDeprecatedRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder>, + ListingSubscriptionsDeprecatedRequest>() { + @Override + public ListingSubscriptionsDeprecatedRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.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< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>() { + @Override + public ListingSubscriptionsDeprecatedResponse apply( + ListingSubscriptionsDeprecatedRequest request) { + return client.listingSubscriptionsDeprecated(request); + } + }, + new java.util.function.Function< + ListingSubscriptionsDeprecatedResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getListingSubscriptionsCollection().getItems(); + } + }); + } } diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java index 48ecbd22c07..d2a1c1c9288 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java @@ -40,7 +40,6 @@ public final class CreateSubscriptionUsageRecordDetails "productSku", "contractDuration", "additionalMetadata", - "usageRecordId", "timeUsageStarted", "timeUsageEnded" }) @@ -60,7 +59,6 @@ public CreateSubscriptionUsageRecordDetails( String productSku, BillingFrequency contractDuration, java.util.List additionalMetadata, - String usageRecordId, java.util.Date timeUsageStarted, java.util.Date timeUsageEnded) { super(); @@ -79,7 +77,6 @@ public CreateSubscriptionUsageRecordDetails( this.productSku = productSku; this.contractDuration = contractDuration; this.additionalMetadata = additionalMetadata; - this.usageRecordId = usageRecordId; this.timeUsageStarted = timeUsageStarted; this.timeUsageEnded = timeUsageEnded; } @@ -325,21 +322,6 @@ public Builder additionalMetadata(java.util.List additionalMet this.__explicitlySet__.add("additionalMetadata"); return this; } - /** Partner-provided usage record identifier for traceability. */ - @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") - private String usageRecordId; - - /** - * Partner-provided usage record identifier for traceability. - * - * @param usageRecordId the value to set - * @return this builder - */ - public Builder usageRecordId(String usageRecordId) { - this.usageRecordId = usageRecordId; - this.__explicitlySet__.add("usageRecordId"); - return this; - } /** * The inclusive start timestamp for the usage window. This value must be before {@code * timeUsageEnded}. @@ -400,7 +382,6 @@ public CreateSubscriptionUsageRecordDetails build() { this.productSku, this.contractDuration, this.additionalMetadata, - this.usageRecordId, this.timeUsageStarted, this.timeUsageEnded); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -456,9 +437,6 @@ public Builder copy(CreateSubscriptionUsageRecordDetails model) { if (model.wasPropertyExplicitlySet("additionalMetadata")) { this.additionalMetadata(model.getAdditionalMetadata()); } - if (model.wasPropertyExplicitlySet("usageRecordId")) { - this.usageRecordId(model.getUsageRecordId()); - } if (model.wasPropertyExplicitlySet("timeUsageStarted")) { this.timeUsageStarted(model.getTimeUsageStarted()); } @@ -720,19 +698,6 @@ public java.util.List getAdditionalMetadata() { return additionalMetadata; } - /** Partner-provided usage record identifier for traceability. */ - @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") - private final String usageRecordId; - - /** - * Partner-provided usage record identifier for traceability. - * - * @return the value - */ - public String getUsageRecordId() { - return usageRecordId; - } - /** * The inclusive start timestamp for the usage window. This value must be before {@code * timeUsageEnded}. @@ -797,7 +762,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", productSku=").append(String.valueOf(this.productSku)); sb.append(", contractDuration=").append(String.valueOf(this.contractDuration)); sb.append(", additionalMetadata=").append(String.valueOf(this.additionalMetadata)); - sb.append(", usageRecordId=").append(String.valueOf(this.usageRecordId)); sb.append(", timeUsageStarted=").append(String.valueOf(this.timeUsageStarted)); sb.append(", timeUsageEnded=").append(String.valueOf(this.timeUsageEnded)); sb.append(")"); @@ -829,7 +793,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.productSku, other.productSku) && java.util.Objects.equals(this.contractDuration, other.contractDuration) && java.util.Objects.equals(this.additionalMetadata, other.additionalMetadata) - && java.util.Objects.equals(this.usageRecordId, other.usageRecordId) && java.util.Objects.equals(this.timeUsageStarted, other.timeUsageStarted) && java.util.Objects.equals(this.timeUsageEnded, other.timeUsageEnded) && super.equals(other); @@ -878,9 +841,6 @@ public int hashCode() { + (this.additionalMetadata == null ? 43 : this.additionalMetadata.hashCode()); - result = - (result * PRIME) - + (this.usageRecordId == null ? 43 : this.usageRecordId.hashCode()); result = (result * PRIME) + (this.timeUsageStarted == null ? 43 : this.timeUsageStarted.hashCode()); diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java index 8d63380010c..ee99dd96bf1 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java @@ -34,14 +34,14 @@ public SubmitSubscriptionUsageRecordsDetails( public static class Builder { /** * The usage records to submit. The array must contain at least one record and no more than - * 100 records. + * 1,000 records. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") private java.util.List subscriptionUsageRecords; /** * The usage records to submit. The array must contain at least one record and no more than - * 100 records. + * 1,000 records. * * @param subscriptionUsageRecords the value to set * @return this builder @@ -84,15 +84,15 @@ public Builder toBuilder() { } /** - * The usage records to submit. The array must contain at least one record and no more than 100 - * records. + * The usage records to submit. The array must contain at least one record and no more than + * 1,000 records. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") private final java.util.List subscriptionUsageRecords; /** - * The usage records to submit. The array must contain at least one record and no more than 100 - * records. + * The usage records to submit. The array must contain at least one record and no more than + * 1,000 records. * * @return the value */ diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java new file mode 100644 index 00000000000..54b193ce94c --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java @@ -0,0 +1,368 @@ +/** + * 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.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use + * ActivateSubscriptionDeprecatedRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ActivateSubscriptionDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.ActivateSubscriptionDetails> { + + /** The unique identifier for the subscription. */ + private String subscriptionId; + + /** The unique identifier for the subscription. */ + public String getSubscriptionId() { + return subscriptionId; + } + /** The details for activating the subscription. */ + private com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails; + + /** The details for activating the subscription. */ + public com.oracle.bmc.self.model.ActivateSubscriptionDetails getActivateSubscriptionDetails() { + return activateSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed 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 running 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 removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + 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. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.ActivateSubscriptionDetails getBody$() { + return activateSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateSubscriptionDeprecatedRequest, + com.oracle.bmc.self.model.ActivateSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The unique identifier for the subscription. */ + private String subscriptionId = null; + + /** + * The unique identifier for the subscription. + * + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The details for activating the subscription. */ + private com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails = + null; + + /** + * The details for activating the subscription. + * + * @param activateSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder activateSubscriptionDetails( + com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails) { + this.activateSubscriptionDetails = activateSubscriptionDetails; + 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 running 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 removed 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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ActivateSubscriptionDeprecatedRequest o) { + subscriptionId(o.getSubscriptionId()); + activateSubscriptionDetails(o.getActivateSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateSubscriptionDeprecatedRequest 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 ActivateSubscriptionDeprecatedRequest + */ + public ActivateSubscriptionDeprecatedRequest build() { + ActivateSubscriptionDeprecatedRequest 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.self.model.ActivateSubscriptionDetails body) { + activateSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of ActivateSubscriptionDeprecatedRequest 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 ActivateSubscriptionDeprecatedRequest + */ + public ActivateSubscriptionDeprecatedRequest buildWithoutInvocationCallback() { + ActivateSubscriptionDeprecatedRequest request = + new ActivateSubscriptionDeprecatedRequest(); + request.subscriptionId = subscriptionId; + request.activateSubscriptionDetails = activateSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ActivateSubscriptionDeprecatedRequest(subscriptionId, + // activateSubscriptionDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .subscriptionId(subscriptionId) + .activateSubscriptionDetails(activateSubscriptionDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(",activateSubscriptionDetails=") + .append(String.valueOf(this.activateSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateSubscriptionDeprecatedRequest)) { + return false; + } + + ActivateSubscriptionDeprecatedRequest other = (ActivateSubscriptionDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals( + this.activateSubscriptionDetails, other.activateSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.activateSubscriptionDetails == null + ? 43 + : this.activateSubscriptionDetails.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-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java new file mode 100644 index 00000000000..9516ca0b203 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.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.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use + * ListingSubscriptionsDeprecatedRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListingSubscriptionsDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The unique identifier for the listing. */ + private String listingId; + + /** The unique identifier for the listing. */ + public String getListingId() { + return listingId; + } + /** A filter to return only resources that match the given name. */ + private String displayName; + + /** A filter to return only resources that match the given name. */ + public String getDisplayName() { + return displayName; + } + /** The field to sort by. Only one sort order may be provided. */ + private SortBy sortBy; + + /** The field to sort by. Only one sort order may be provided. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ProductId("productId"), + ; + + 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. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.self.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.self.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * 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. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListingSubscriptionsDeprecatedRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The unique identifier for the listing. */ + private String listingId = null; + + /** + * The unique identifier for the listing. + * + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + return this; + } + + /** A filter to return only resources that match the given name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the given name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The field to sort by. Only one sort order may be provided. */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * + * @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 ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.self.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.self.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + 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 = null; + + /** + * 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 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(ListingSubscriptionsDeprecatedRequest o) { + listingId(o.getListingId()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListingSubscriptionsDeprecatedRequest 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 ListingSubscriptionsDeprecatedRequest + */ + public ListingSubscriptionsDeprecatedRequest build() { + ListingSubscriptionsDeprecatedRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListingSubscriptionsDeprecatedRequest 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 ListingSubscriptionsDeprecatedRequest + */ + public ListingSubscriptionsDeprecatedRequest buildWithoutInvocationCallback() { + ListingSubscriptionsDeprecatedRequest request = + new ListingSubscriptionsDeprecatedRequest(); + request.listingId = listingId; + request.displayName = displayName; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListingSubscriptionsDeprecatedRequest(listingId, displayName, sortBy, sortOrder, + // limit, page, 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() + .listingId(listingId) + .displayName(displayName) + .sortBy(sortBy) + .sortOrder(sortOrder) + .limit(limit) + .page(page) + .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(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + 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 ListingSubscriptionsDeprecatedRequest)) { + return false; + } + + ListingSubscriptionsDeprecatedRequest other = (ListingSubscriptionsDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java new file mode 100644 index 00000000000..aa52fe55fe1 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java @@ -0,0 +1,339 @@ +/** + * 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.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use + * ResolveSubscriptionDeprecatedRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ResolveSubscriptionDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.ResolveSubscriptionDetails> { + + /** Details for the new Subscription. */ + private com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails; + + /** Details for the new Subscription. */ + public com.oracle.bmc.self.model.ResolveSubscriptionDetails getResolveSubscriptionDetails() { + return resolveSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed 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 running 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 removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + 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. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.ResolveSubscriptionDetails getBody$() { + return resolveSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ResolveSubscriptionDeprecatedRequest, + com.oracle.bmc.self.model.ResolveSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Subscription. */ + private com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails = + null; + + /** + * Details for the new Subscription. + * + * @param resolveSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder resolveSubscriptionDetails( + com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails) { + this.resolveSubscriptionDetails = resolveSubscriptionDetails; + 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 running 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 removed 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 running 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 removed 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 Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ResolveSubscriptionDeprecatedRequest o) { + resolveSubscriptionDetails(o.getResolveSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ResolveSubscriptionDeprecatedRequest 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 ResolveSubscriptionDeprecatedRequest + */ + public ResolveSubscriptionDeprecatedRequest build() { + ResolveSubscriptionDeprecatedRequest 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.self.model.ResolveSubscriptionDetails body) { + resolveSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of ResolveSubscriptionDeprecatedRequest 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 ResolveSubscriptionDeprecatedRequest + */ + public ResolveSubscriptionDeprecatedRequest buildWithoutInvocationCallback() { + ResolveSubscriptionDeprecatedRequest request = + new ResolveSubscriptionDeprecatedRequest(); + request.resolveSubscriptionDetails = resolveSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ResolveSubscriptionDeprecatedRequest(resolveSubscriptionDetails, opcRetryToken, + // opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .resolveSubscriptionDetails(resolveSubscriptionDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",resolveSubscriptionDetails=") + .append(String.valueOf(this.resolveSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResolveSubscriptionDeprecatedRequest)) { + return false; + } + + ResolveSubscriptionDeprecatedRequest other = (ResolveSubscriptionDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.resolveSubscriptionDetails, other.resolveSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.resolveSubscriptionDetails == null + ? 43 + : this.resolveSubscriptionDetails.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-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java index 6ab23365a6a..c26a92bb5f2 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java @@ -29,7 +29,7 @@ public String getCompartmentId() { return compartmentId; } /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. Required + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. Required * columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. Optional * columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, {@code BillingIdentifier}, @@ -41,7 +41,7 @@ public String getCompartmentId() { private java.io.InputStream submitSubscriptionUsageBatchDetails; /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. Required + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. Required * columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. Optional * columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, {@code BillingIdentifier}, @@ -124,7 +124,7 @@ public Builder compartmentId(String compartmentId) { } /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code * CurrencyCode}, {@code UsageStartTime}, {@code UsageEndTime}, and {@code * UsageDimensionName}. Optional columns are {@code ConsumedQuantity}, {@code @@ -137,7 +137,7 @@ public Builder compartmentId(String compartmentId) { private java.io.InputStream submitSubscriptionUsageBatchDetails = null; /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code * CurrencyCode}, {@code UsageStartTime}, {@code UsageEndTime}, and {@code * UsageDimensionName}. Optional columns are {@code ConsumedQuantity}, {@code diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java new file mode 100644 index 00000000000..e613428da7a --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java @@ -0,0 +1,216 @@ +/** + * 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.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ActivateSubscriptionDeprecatedResponse 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 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 ActivateSubscriptionResult} instance. */ + private com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult; + + /** + * The returned {@code ActivateSubscriptionResult} instance. + * + * @return the value + */ + public com.oracle.bmc.self.model.ActivateSubscriptionResult getActivateSubscriptionResult() { + return activateSubscriptionResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "activateSubscriptionResult" + }) + private ActivateSubscriptionDeprecatedResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.activateSubscriptionResult = activateSubscriptionResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ActivateSubscriptionDeprecatedResponse> { + 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 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 ActivateSubscriptionResult} instance. */ + private com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult; + + /** + * The returned {@code ActivateSubscriptionResult} instance. + * + * @param activateSubscriptionResult the value to set + * @return this builder + */ + public Builder activateSubscriptionResult( + com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult) { + this.activateSubscriptionResult = activateSubscriptionResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateSubscriptionDeprecatedResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + activateSubscriptionResult(o.getActivateSubscriptionResult()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ActivateSubscriptionDeprecatedResponse build() { + return new ActivateSubscriptionDeprecatedResponse( + __httpStatusCode__, headers, opcRequestId, etag, activateSubscriptionResult); + } + } + + /** + * 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(",activateSubscriptionResult=") + .append(String.valueOf(activateSubscriptionResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateSubscriptionDeprecatedResponse)) { + return false; + } + + ActivateSubscriptionDeprecatedResponse other = (ActivateSubscriptionDeprecatedResponse) 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.activateSubscriptionResult, other.activateSubscriptionResult); + } + + @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.activateSubscriptionResult == null + ? 43 + : this.activateSubscriptionResult.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java new file mode 100644 index 00000000000..bfc678fee9e --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.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.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListingSubscriptionsDeprecatedResponse 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 list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ListingSubscriptionsCollection} instance. */ + private com.oracle.bmc.self.model.ListingSubscriptionsCollection listingSubscriptionsCollection; + + /** + * The returned {@code ListingSubscriptionsCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.self.model.ListingSubscriptionsCollection + getListingSubscriptionsCollection() { + return listingSubscriptionsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "listingSubscriptionsCollection" + }) + private ListingSubscriptionsDeprecatedResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.listingSubscriptionsCollection = listingSubscriptionsCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListingSubscriptionsDeprecatedResponse> { + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ListingSubscriptionsCollection} instance. */ + private com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection; + + /** + * The returned {@code ListingSubscriptionsCollection} instance. + * + * @param listingSubscriptionsCollection the value to set + * @return this builder + */ + public Builder listingSubscriptionsCollection( + com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection) { + this.listingSubscriptionsCollection = listingSubscriptionsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListingSubscriptionsDeprecatedResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + listingSubscriptionsCollection(o.getListingSubscriptionsCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListingSubscriptionsDeprecatedResponse build() { + return new ListingSubscriptionsDeprecatedResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + listingSubscriptionsCollection); + } + } + + /** + * 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(",listingSubscriptionsCollection=") + .append(String.valueOf(listingSubscriptionsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListingSubscriptionsDeprecatedResponse)) { + return false; + } + + ListingSubscriptionsDeprecatedResponse other = (ListingSubscriptionsDeprecatedResponse) 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.listingSubscriptionsCollection, other.listingSubscriptionsCollection); + } + + @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.listingSubscriptionsCollection == null + ? 43 + : this.listingSubscriptionsCollection.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java new file mode 100644 index 00000000000..33dace3aea3 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java @@ -0,0 +1,214 @@ +/** + * 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.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ResolveSubscriptionDeprecatedResponse 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 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 PartnerSubscription} instance. */ + private com.oracle.bmc.self.model.PartnerSubscription partnerSubscription; + + /** + * The returned {@code PartnerSubscription} instance. + * + * @return the value + */ + public com.oracle.bmc.self.model.PartnerSubscription getPartnerSubscription() { + return partnerSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "partnerSubscription" + }) + private ResolveSubscriptionDeprecatedResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.self.model.PartnerSubscription partnerSubscription) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.partnerSubscription = partnerSubscription; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ResolveSubscriptionDeprecatedResponse> { + 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 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 PartnerSubscription} instance. */ + private com.oracle.bmc.self.model.PartnerSubscription partnerSubscription; + + /** + * The returned {@code PartnerSubscription} instance. + * + * @param partnerSubscription the value to set + * @return this builder + */ + public Builder partnerSubscription( + com.oracle.bmc.self.model.PartnerSubscription partnerSubscription) { + this.partnerSubscription = partnerSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ResolveSubscriptionDeprecatedResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + partnerSubscription(o.getPartnerSubscription()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ResolveSubscriptionDeprecatedResponse build() { + return new ResolveSubscriptionDeprecatedResponse( + __httpStatusCode__, headers, opcRequestId, etag, partnerSubscription); + } + } + + /** + * 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(",partnerSubscription=").append(String.valueOf(partnerSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResolveSubscriptionDeprecatedResponse)) { + return false; + } + + ResolveSubscriptionDeprecatedResponse other = (ResolveSubscriptionDeprecatedResponse) 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.partnerSubscription, other.partnerSubscription); + } + + @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.partnerSubscription == null + ? 43 + : this.partnerSubscription.hashCode()); + return result; + } +} diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index ec55c9f929c..7e5ce678f25 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 12cd3e215b5..3a99f26479e 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.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 a2df61d1038..d6c3d18540a 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.95.2 + 3.96.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 98c0e6a96dd..f1ff487525b 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 0656577a2d4..c39d9452597 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 941cd6b3357..fe140a844b9 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 29394d1d842..8407d0a684f 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 7bda178b906..267f70741b0 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index df74eb5e1aa..5ca3e966111 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index e5a1fd64337..1528dd56970 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 055d8f4b772..44a247baca1 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 4538eba548f..9484bf4e519 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index e68da1f399b..c86ac104059 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index bf938c2e019..fe3910beca3 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 83b88f1cd37..4e436a4f43a 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index ed5277a7a97..baeb0c66637 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 458ad9c4c66..982e61a58f2 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index be0b2da991b..d189c6113b5 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 8ebb46a0e3b..4b018e87af3 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 8bb0cabde44..c95b05c13c8 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index f56cfcee799..578332258cd 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.2 + 3.96.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 412c929eafd..9a080196bf3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.95.2 + 3.96.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure