From 45d3e1b6601108433533fe03ca37798867d9bd23 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 11 Aug 2026 20:43:49 +0000 Subject: [PATCH] Releasing version 3.94.1 --- CHANGELOG.md | 12 + 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 | 388 +-- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- .../oracle/bmc/core/model/CaptureFilter.java | 46 + .../oracle/bmc/core/model/DhcpOptions.java | 46 + .../core/model/HostGroupConfiguration.java | 47 +- .../bmc/core/model/InternetGateway.java | 46 + .../java/com/oracle/bmc/core/model/Ipv6.java | 46 + .../bmc/core/model/NetworkSecurityGroup.java | 46 + .../bmc/core/model/QuickRecycleSettings.java | 133 + .../com/oracle/bmc/core/model/RouteTable.java | 46 + .../oracle/bmc/core/model/SecurityList.java | 46 + .../com/oracle/bmc/core/model/Subnet.java | 46 + .../java/com/oracle/bmc/core/model/Vcn.java | 46 + .../java/com/oracle/bmc/core/model/Vlan.java | 46 + .../java/com/oracle/bmc/core/model/Vnic.java | 46 + .../java/com/oracle/bmc/core/model/Vtap.java | 46 + .../oci-java-sdk-core/reflect-config.json | 14 + bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../database/model/AutonomousDatabase.java | 194 ++ .../model/AutonomousDatabaseSummary.java | 194 ++ .../database/model/AutonomousDwDatabase.java | 194 ++ .../model/CreateAutonomousDatabaseBase.java | 23 + .../CreateAutonomousDatabaseCloneDetails.java | 15 + .../CreateAutonomousDatabaseDetails.java | 15 + ...teAutonomousDatabaseFromBackupDetails.java | 15 + ...ousDatabaseFromBackupTimestampDetails.java | 15 + ...ionAutonomousDatabaseDataGuardDetails.java | 15 + ...ateCrossRegionDisasterRecoveryDetails.java | 15 + ...teCrossTenancyDisasterRecoveryDetails.java | 15 + ...eshableAutonomousDatabaseCloneDetails.java | 15 + .../UndeleteAutonomousDatabaseDetails.java | 15 + .../UpdateAutonomousDatabaseDetails.java | 182 ++ bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-databasetoolsruntime/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-datacc/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-ddfs/pom.xml | 21 + .../java/com/oracle/bmc/ddfs/Instance.java | 255 ++ .../com/oracle/bmc/ddfs/InstanceAsync.java | 231 ++ .../oracle/bmc/ddfs/InstanceAsyncClient.java | 598 ++++ .../com/oracle/bmc/ddfs/InstanceClient.java | 652 ++++ .../oracle/bmc/ddfs/InstancePaginators.java | 513 ++++ .../com/oracle/bmc/ddfs/InstanceWaiters.java | 181 ++ .../com/oracle/bmc/ddfs/model/ActionType.java | 56 + .../ChangeInstanceCompartmentDetails.java | 145 + .../bmc/ddfs/model/CreateInstanceDetails.java | 366 +++ .../com/oracle/bmc/ddfs/model/Instance.java | 800 +++++ .../bmc/ddfs/model/InstanceCollection.java | 134 + .../bmc/ddfs/model/InstanceSummary.java | 649 ++++ .../bmc/ddfs/model/OperationStatus.java | 59 + .../oracle/bmc/ddfs/model/OperationType.java | 55 + .../com/oracle/bmc/ddfs/model/SortOrder.java | 43 + .../bmc/ddfs/model/UpdateInstanceDetails.java | 258 ++ .../oracle/bmc/ddfs/model/WorkRequest.java | 544 ++++ .../bmc/ddfs/model/WorkRequestError.java | 219 ++ .../model/WorkRequestErrorCollection.java | 134 + .../bmc/ddfs/model/WorkRequestLogEntry.java | 177 ++ .../model/WorkRequestLogEntryCollection.java | 133 + .../bmc/ddfs/model/WorkRequestResource.java | 315 ++ .../model/WorkRequestResourceMetadataKey.java | 52 + .../bmc/ddfs/model/WorkRequestSummary.java | 543 ++++ .../model/WorkRequestSummaryCollection.java | 134 + .../requests/CancelWorkRequestRequest.java | 263 ++ .../ChangeInstanceCompartmentRequest.java | 328 ++ .../ddfs/requests/CreateInstanceRequest.java | 287 ++ .../ddfs/requests/DeleteInstanceRequest.java | 258 ++ .../bmc/ddfs/requests/GetInstanceRequest.java | 214 ++ .../ddfs/requests/GetWorkRequestRequest.java | 216 ++ .../ddfs/requests/ListInstancesRequest.java | 506 ++++ .../ListWorkRequestErrorsRequest.java | 403 +++ .../requests/ListWorkRequestLogsRequest.java | 401 +++ .../requests/ListWorkRequestsRequest.java | 504 ++++ .../ddfs/requests/UpdateInstanceRequest.java | 318 ++ .../responses/CancelWorkRequestResponse.java | 136 + .../ChangeInstanceCompartmentResponse.java | 190 ++ .../responses/CreateInstanceResponse.java | 332 +++ .../responses/DeleteInstanceResponse.java | 189 ++ .../ddfs/responses/GetInstanceResponse.java | 208 ++ .../responses/GetWorkRequestResponse.java | 249 ++ .../ddfs/responses/ListInstancesResponse.java | 225 ++ .../ListWorkRequestErrorsResponse.java | 231 ++ .../ListWorkRequestLogsResponse.java | 234 ++ .../responses/ListWorkRequestsResponse.java | 233 ++ .../responses/UpdateInstanceResponse.java | 189 ++ .../oci-java-sdk-ddfs/reflect-config.json | 234 ++ .../com/oracle/bmc/ddfs/client.properties | 9 + 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 | 21 + .../DistributedAutonomousDbService.java | 520 ++++ .../DistributedAutonomousDbServiceAsync.java | 517 ++++ ...ributedAutonomousDbServiceAsyncClient.java | 1326 +++++++++ .../DistributedAutonomousDbServiceClient.java | 1326 +++++++++ ...tributedAutonomousDbServicePaginators.java | 179 ++ ...DistributedAutonomousDbServiceWaiters.java | 158 + .../DistributedDbPrivateEndpointService.java | 219 ++ ...tributedDbPrivateEndpointServiceAsync.java | 207 ++ ...edDbPrivateEndpointServiceAsyncClient.java | 591 ++++ ...ributedDbPrivateEndpointServiceClient.java | 648 ++++ ...tedDbPrivateEndpointServicePaginators.java | 184 ++ ...ibutedDbPrivateEndpointServiceWaiters.java | 160 + .../DistributedDbService.java | 469 +++ .../DistributedDbServiceAsync.java | 457 +++ .../DistributedDbServiceAsyncClient.java | 1161 ++++++++ .../DistributedDbServiceClient.java | 1172 ++++++++ .../DistributedDbServicePaginators.java | 169 ++ .../DistributedDbServiceWaiters.java | 147 + .../DistributedDbWorkRequestService.java | 145 + .../DistributedDbWorkRequestServiceAsync.java | 126 + ...ibutedDbWorkRequestServiceAsyncClient.java | 406 +++ ...DistributedDbWorkRequestServiceClient.java | 478 +++ ...ributedDbWorkRequestServicePaginators.java | 408 +++ ...istributedDbWorkRequestServiceWaiters.java | 84 + .../model/ActionType.java | 56 + ...tonomousDatabaseGdsControlNodeDetails.java | 181 ++ ...tributedDatabaseGdsControlNodeDetails.java | 180 ++ ...esourceManagementConfigurationDetails.java | 588 ++++ ...utonomousCompositeDataGuardShardSpace.java | 255 ++ ...usCompositeDataGuardShardSpaceReplica.java | 181 ++ .../AutonomousCompositeRaftShardSpace.java | 266 ++ ...onomousCompositeShardSpaceRaftCluster.java | 348 +++ .../AutonomousSystemDataGuardDatabase.java | 166 ++ .../AutonomousSystemDataGuardReplica.java | 180 ++ .../model/AutonomousSystemRaftCluster.java | 347 +++ .../model/AutonomousUserShardSpace.java | 210 ++ .../AutonomousUserShardSpaceReplica.java | 167 ++ ...dAutonomousDatabaseCompartmentDetails.java | 147 + ...ibutedAutonomousDbBackupConfigDetails.java | 128 + ...DistributedDatabaseCompartmentDetails.java | 147 + ...basePrivateEndpointCompartmentDetails.java | 147 + ...hangeDistributedDbBackupConfigDetails.java | 125 + .../model/CompositeDataGuardShardSpace.java | 254 ++ .../CompositeDataGuardShardSpaceReplica.java | 179 ++ .../model/CompositeRaftShardSpace.java | 265 ++ .../model/CompositeShardSpaceRaftCluster.java | 346 +++ ...DatabaseAutoResourceManagementDetails.java | 553 ++++ ...tedAutonomousDatabaseGsmWalletDetails.java | 192 ++ ...tributedAutonomousDatabaseGsmsDetails.java | 192 ++ ...DatabaseAutoResourceManagementDetails.java | 551 ++++ ...nfigureDistributedDatabaseGsmsDetails.java | 191 ++ ...reateAutonomousCatalogDatabaseDetails.java | 114 + .../model/CreateAutonomousCatalogDetails.java | 166 ++ ...CreateAutonomousCatalogReplicaDetails.java | 167 ++ ...usCompositeDataGuardShardSpaceDetails.java | 262 ++ ...siteDataGuardShardSpaceReplicaDetails.java | 184 ++ ...onomousCompositeRaftShardSpaceDetails.java | 270 ++ ...CompositeShardSpaceRaftClusterDetails.java | 336 +++ ...onomousSystemDataGuardDatabaseDetails.java | 168 ++ ...tonomousSystemDataGuardReplicaDetails.java | 182 ++ ...ateAutonomousSystemRaftClusterDetails.java | 336 +++ ...CreateAutonomousUserShardSpaceDetails.java | 211 ++ ...utonomousUserShardSpaceReplicaDetails.java | 168 ++ ...teCompositeDataGuardShardSpaceDetails.java | 258 ++ ...siteDataGuardShardSpaceReplicaDetails.java | 181 ++ .../CreateCompositeRaftShardSpaceDetails.java | 266 ++ ...CompositeShardSpaceRaftClusterDetails.java | 336 +++ ...abaseCatalogWithDedicatedInfraDetails.java | 764 +++++ ...eDistributedAutonomousDatabaseDetails.java | 1267 ++++++++ ...utonomousDatabaseShardDatabaseDetails.java | 115 + ...atabaseShardWithDedicatedInfraDetails.java | 815 +++++ ...ributedDatabaseCatalogDatabaseDetails.java | 136 + ...abaseCatalogDatabaseWithDbHomeDetails.java | 461 +++ ...baseCatalogDatabaseWithExadbXdDetails.java | 461 +++ ...baseCatalogDatabaseWithExadbXsDetails.java | 461 +++ ...eateDistributedDatabaseCatalogDetails.java | 167 ++ ...tributedDatabaseCatalogReplicaDetails.java | 168 ++ ...seCatalogWithExadbXsNewClusterDetails.java | 547 ++++ ...gWithExadbXsNewVaultAndClusterDetails.java | 528 ++++ .../CreateDistributedDatabaseDetails.java | 1270 ++++++++ ...ributedDatabasePrivateEndpointDetails.java | 393 +++ ...stributedDatabaseShardDatabaseDetails.java | 136 + ...atabaseShardDatabaseWithDbHomeDetails.java | 460 +++ ...tabaseShardDatabaseWithExadbXdDetails.java | 461 +++ ...tabaseShardDatabaseWithExadbXsDetails.java | 461 +++ ...baseShardWithExadbXsNewClusterDetails.java | 549 ++++ ...dWithExadbXsNewVaultAndClusterDetails.java | 527 ++++ .../CreateSystemDataGuardDatabaseDetails.java | 166 ++ .../CreateSystemDataGuardReplicaDetails.java | 180 ++ .../model/CreateSystemRaftClusterDetails.java | 335 +++ .../model/CreateUserShardSpaceDetails.java | 210 ++ .../CreateUserShardSpaceReplicaDetails.java | 167 ++ .../model/DbStorageVaultDetails.java | 386 +++ .../model/DistributedAutonomousDatabase.java | 2026 +++++++++++++ ...DatabaseAutoResourceManagementDetails.java | 589 ++++ .../DistributedAutonomousDatabaseCatalog.java | 167 ++ ...utedAutonomousDatabaseCatalogDatabase.java | 194 ++ ...butedAutonomousDatabaseCatalogReplica.java | 168 ++ ...mousDatabaseCatalogWithDedicatedInfra.java | 888 ++++++ ...stributedAutonomousDatabaseCollection.java | 135 + ...tedAutonomousDatabaseConnectionString.java | 141 + ...butedAutonomousDatabaseGdsControlNode.java | 468 +++ ...AutonomousDatabaseGdsControlNodeImage.java | 179 ++ .../DistributedAutonomousDatabaseGsm.java | 552 ++++ ...DistributedAutonomousDatabaseGsmImage.java | 178 ++ ...stributedAutonomousDatabaseRaftMetric.java | 171 ++ ...tributedAutonomousDatabaseRuChangeLog.java | 137 + ...dAutonomousDatabaseRuChangeLogSummary.java | 419 +++ ...ibutedAutonomousDatabaseShardDatabase.java | 193 ++ ...nomousDatabaseShardWithDedicatedInfra.java | 884 ++++++ .../DistributedAutonomousDatabaseSummary.java | 1451 +++++++++ .../DistributedAutonomousDbBackupConfig.java | 200 ++ ...tributedAutonomousDbBackupDestination.java | 406 +++ .../DistributedAutonomousDbMetadata.java | 133 + ...DistributedAutonomousDbProtectionMode.java | 59 + .../model/DistributedDatabase.java | 2004 +++++++++++++ ...DatabaseAutoResourceManagementDetails.java | 588 ++++ .../model/DistributedDatabaseCatalog.java | 165 ++ .../DistributedDatabaseCatalogDatabase.java | 213 ++ ...utedDatabaseCatalogDatabaseWithDbHome.java | 650 ++++ ...tedDatabaseCatalogDatabaseWithExadbXd.java | 650 ++++ ...tedDatabaseCatalogDatabaseWithExadbXs.java | 650 ++++ ...eCatalogDatabaseWithExadbXsNewCluster.java | 730 +++++ ...DatabaseWithExadbXsNewVaultAndCluster.java | 708 +++++ ...tributedDatabaseCatalogReplicaDetails.java | 168 ++ .../model/DistributedDatabaseCollection.java | 133 + .../DistributedDatabaseGdsControlNode.java | 467 +++ .../model/DistributedDatabaseGsm.java | 552 ++++ .../DistributedDatabasePrivateEndpoint.java | 806 +++++ ...utedDatabasePrivateEndpointCollection.java | 136 + ...ributedDatabasePrivateEndpointSummary.java | 668 +++++ .../model/DistributedDatabaseRaftMetric.java | 171 ++ .../model/DistributedDatabaseRuChangeLog.java | 136 + ...DistributedDatabaseRuChangeLogSummary.java | 418 +++ .../DistributedDatabaseShardDatabase.java | 213 ++ ...ibutedDatabaseShardDatabaseWithDbHome.java | 650 ++++ ...butedDatabaseShardDatabaseWithExadbXd.java | 650 ++++ ...butedDatabaseShardDatabaseWithExadbXs.java | 650 ++++ ...aseShardDatabaseWithExadbXsNewCluster.java | 730 +++++ ...DatabaseWithExadbXsNewVaultAndCluster.java | 708 +++++ .../model/DistributedDatabaseSummary.java | 1401 +++++++++ .../model/DistributedDbBackupConfig.java | 887 ++++++ .../model/DistributedDbBackupDestination.java | 405 +++ .../model/DistributedDbConnectionString.java | 139 + .../DistributedDbGdsControlNodeImage.java | 178 ++ .../model/DistributedDbGsmImage.java | 177 ++ .../model/DistributedDbMetadata.java | 133 + .../model/DistributedDbProtectionMode.java | 54 + .../model/DistributedDbStorageVault.java | 479 +++ .../model/DistributedDbTransportType.java | 54 + .../model/DistributedDbVmCluster.java | 1070 +++++++ ...ibutedAutonomousDatabaseWalletDetails.java | 175 ++ ...erateDistributedDatabaseWalletDetails.java | 175 ++ ...onomousDatabaseReplicationUnitDetails.java | 239 ++ ...ributedDatabaseReplicationUnitDetails.java | 239 ++ .../model/OperationStatus.java | 59 + .../model/OperationType.java | 89 + ...hDistributedAutonomousDatabaseDetails.java | 138 + .../PatchDistributedDatabaseDetails.java | 136 + ...ributedDatabasePrivateEndpointDetails.java | 137 + .../model/PatchInsertInstruction.java | 146 + .../model/PatchInstruction.java | 144 + .../model/PatchMergeInstruction.java | 152 + .../model/PatchRemoveInstruction.java | 113 + ...eDistributedAutonomousDatabaseDetails.java | 201 ++ ...tedAutonomousDatabasePasswordsDetails.java | 141 + .../RotateDistributedDatabaseDetails.java | 199 ++ ...teDistributedDatabasePasswordsDetails.java | 140 + ...tributedAutonomousDatabaseGsmsDetails.java | 102 + .../ScaleDistributedDatabaseGsmsDetails.java | 99 + .../model/SortOrder.java | 40 + .../model/SystemDataGuardDatabase.java | 164 + .../model/SystemDataGuardReplica.java | 178 ++ .../model/SystemRaftCluster.java | 346 +++ ...eDistributedAutonomousDatabaseDetails.java | 295 ++ .../UpdateDistributedDatabaseDetails.java | 294 ++ ...ributedDatabasePrivateEndpointDetails.java | 266 ++ .../model/UserShardSpace.java | 207 ++ .../model/UserShardSpaceReplica.java | 165 ++ .../model/VcnNsgIdsDetails.java | 202 ++ .../model/VmClusterDetails.java | 965 ++++++ .../model/WorkRequest.java | 489 +++ .../model/WorkRequestError.java | 211 ++ .../model/WorkRequestErrorCollection.java | 134 + .../model/WorkRequestLogEntry.java | 169 ++ .../model/WorkRequestLogEntryCollection.java | 134 + .../model/WorkRequestResource.java | 307 ++ .../model/WorkRequestResourceMetadataKey.java | 52 + .../model/WorkRequestSummary.java | 491 +++ .../model/WorkRequestSummaryCollection.java | 134 + ...tonomousDatabaseGdsControlNodeRequest.java | 393 +++ ...tributedDatabaseGdsControlNodeRequest.java | 385 +++ ...dAutonomousDatabaseCompartmentRequest.java | 385 +++ ...ibutedAutonomousDbBackupConfigRequest.java | 392 +++ ...DistributedDatabaseCompartmentRequest.java | 375 +++ ...basePrivateEndpointCompartmentRequest.java | 387 +++ ...hangeDistributedDbBackupConfigRequest.java | 367 +++ ...DatabaseAutoResourceManagementRequest.java | 391 +++ ...tedAutonomousDatabaseGsmWalletRequest.java | 387 +++ ...tributedAutonomousDatabaseGsmsRequest.java | 382 +++ ...utedAutonomousDatabaseShardingRequest.java | 400 +++ ...DatabaseAutoResourceManagementRequest.java | 384 +++ ...nfigureDistributedDatabaseGsmsRequest.java | 368 +++ ...ureDistributedDatabaseShardingRequest.java | 340 +++ ...eDistributedAutonomousDatabaseRequest.java | 299 ++ ...ributedDatabasePrivateEndpointRequest.java | 303 ++ .../CreateDistributedDatabaseRequest.java | 284 ++ ...eDistributedAutonomousDatabaseRequest.java | 301 ++ ...ributedDatabasePrivateEndpointRequest.java | 305 ++ .../DeleteDistributedDatabaseRequest.java | 295 ++ ...ibutedAutonomousDatabaseWalletRequest.java | 384 +++ ...erateDistributedDatabaseWalletRequest.java | 371 +++ ...edAutonomousDatabaseRaftMetricRequest.java | 207 ++ ...tDistributedAutonomousDatabaseRequest.java | 276 ++ ...dAutonomousDatabaseRuChangeLogRequest.java | 236 ++ ...ributedDatabasePrivateEndpointRequest.java | 253 ++ ...tDistributedDatabaseRaftMetricRequest.java | 201 ++ .../GetDistributedDatabaseRequest.java | 271 ++ ...DistributedDatabaseRuChangeLogRequest.java | 232 ++ .../requests/GetWorkRequestRequest.java | 192 ++ ...DistributedAutonomousDatabasesRequest.java | 616 ++++ ...ibutedDatabasePrivateEndpointsRequest.java | 487 +++ .../ListDistributedDatabasesRequest.java | 610 ++++ .../ListWorkRequestErrorsRequest.java | 361 +++ .../requests/ListWorkRequestLogsRequest.java | 359 +++ .../requests/ListWorkRequestsRequest.java | 444 +++ ...onomousDatabaseReplicationUnitRequest.java | 393 +++ ...ributedDatabaseReplicationUnitRequest.java | 379 +++ ...hDistributedAutonomousDatabaseRequest.java | 385 +++ ...ributedDatabasePrivateEndpointRequest.java | 385 +++ .../PatchDistributedDatabaseRequest.java | 359 +++ ...utedAutonomousDatabaseResourceRequest.java | 330 +++ ...ledDistributedDatabaseResourceRequest.java | 327 ++ .../ReinstateProxyInstanceRequest.java | 299 ++ ...tedAutonomousDatabasePasswordsRequest.java | 395 +++ ...teDistributedDatabasePasswordsRequest.java | 377 +++ ...tributedAutonomousDatabaseGsmsRequest.java | 379 +++ .../ScaleDistributedDatabaseGsmsRequest.java | 363 +++ ...tDistributedAutonomousDatabaseRequest.java | 301 ++ .../StartDistributedDatabaseRequest.java | 295 ++ ...pDistributedAutonomousDatabaseRequest.java | 301 ++ .../StopDistributedDatabaseRequest.java | 295 ++ ...eDistributedAutonomousDatabaseRequest.java | 326 ++ ...ributedDatabasePrivateEndpointRequest.java | 385 +++ .../UpdateDistributedDatabaseRequest.java | 309 ++ ...utedAutonomousDatabaseCaBundleRequest.java | 304 ++ ...butedAutonomousDatabaseNetworkRequest.java | 331 +++ ...dateDistributedDatabaseNetworkRequest.java | 326 ++ ...onomousDatabaseGdsControlNodeResponse.java | 188 ++ ...ributedDatabaseGdsControlNodeResponse.java | 188 ++ ...AutonomousDatabaseCompartmentResponse.java | 188 ++ ...butedAutonomousDbBackupConfigResponse.java | 188 ++ ...istributedDatabaseCompartmentResponse.java | 188 ++ ...asePrivateEndpointCompartmentResponse.java | 188 ++ ...angeDistributedDbBackupConfigResponse.java | 186 ++ ...atabaseAutoResourceManagementResponse.java | 240 ++ ...edAutonomousDatabaseGsmWalletResponse.java | 188 ++ ...ributedAutonomousDatabaseGsmsResponse.java | 188 ++ ...tedAutonomousDatabaseShardingResponse.java | 188 ++ ...atabaseAutoResourceManagementResponse.java | 236 ++ ...figureDistributedDatabaseGsmsResponse.java | 187 ++ ...reDistributedDatabaseShardingResponse.java | 188 ++ ...DistributedAutonomousDatabaseResponse.java | 271 ++ ...ibutedDatabasePrivateEndpointResponse.java | 272 ++ .../CreateDistributedDatabaseResponse.java | 264 ++ ...DistributedAutonomousDatabaseResponse.java | 188 ++ ...ibutedDatabasePrivateEndpointResponse.java | 188 ++ .../DeleteDistributedDatabaseResponse.java | 186 ++ ...butedAutonomousDatabaseWalletResponse.java | 285 ++ ...rateDistributedDatabaseWalletResponse.java | 285 ++ ...dAutonomousDatabaseRaftMetricResponse.java | 194 ++ ...DistributedAutonomousDatabaseResponse.java | 222 ++ ...AutonomousDatabaseRuChangeLogResponse.java | 196 ++ ...ibutedDatabasePrivateEndpointResponse.java | 228 ++ ...DistributedDatabaseRaftMetricResponse.java | 189 ++ .../GetDistributedDatabaseResponse.java | 216 ++ ...istributedDatabaseRuChangeLogResponse.java | 190 ++ .../responses/GetWorkRequestResponse.java | 217 ++ ...istributedAutonomousDatabasesResponse.java | 240 ++ ...butedDatabasePrivateEndpointsResponse.java | 245 ++ .../ListDistributedDatabasesResponse.java | 237 ++ .../ListWorkRequestErrorsResponse.java | 236 ++ .../ListWorkRequestLogsResponse.java | 236 ++ .../responses/ListWorkRequestsResponse.java | 236 ++ ...nomousDatabaseReplicationUnitResponse.java | 188 ++ ...ibutedDatabaseReplicationUnitResponse.java | 188 ++ ...DistributedAutonomousDatabaseResponse.java | 188 ++ ...ibutedDatabasePrivateEndpointResponse.java | 188 ++ .../PatchDistributedDatabaseResponse.java | 186 ++ ...tedAutonomousDatabaseResourceResponse.java | 188 ++ ...edDistributedDatabaseResourceResponse.java | 188 ++ .../ReinstateProxyInstanceResponse.java | 186 ++ ...edAutonomousDatabasePasswordsResponse.java | 188 ++ ...eDistributedDatabasePasswordsResponse.java | 188 ++ ...ributedAutonomousDatabaseGsmsResponse.java | 188 ++ .../ScaleDistributedDatabaseGsmsResponse.java | 186 ++ ...DistributedAutonomousDatabaseResponse.java | 188 ++ .../StartDistributedDatabaseResponse.java | 186 ++ ...DistributedAutonomousDatabaseResponse.java | 188 ++ .../StopDistributedDatabaseResponse.java | 186 ++ ...DistributedAutonomousDatabaseResponse.java | 223 ++ ...ibutedDatabasePrivateEndpointResponse.java | 228 ++ .../UpdateDistributedDatabaseResponse.java | 216 ++ ...tedAutonomousDatabaseCaBundleResponse.java | 188 ++ ...utedAutonomousDatabaseNetworkResponse.java | 188 ++ ...ateDistributedDatabaseNetworkResponse.java | 188 ++ .../reflect-config.json | 2637 +++++++++++++++++ .../distributeddatabasev26/client.properties | 9 + bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 14 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 12 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- .../CreateDedicatedAiClusterDetails.java | 10 +- .../model/DedicatedAiCluster.java | 3 + 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/ObjectStorage.java | 10 + .../bmc/objectstorage/ObjectStorageAsync.java | 10 + .../ObjectStorageAsyncClient.java | 5 +- .../objectstorage/ObjectStorageClient.java | 5 +- .../bmc/objectstorage/model/Bucket.java | 62 +- .../objectstorage/model/BucketSummary.java | 50 +- .../model/CreateBucketDetails.java | 50 +- .../model/UpdateBucketDetails.java | 78 +- .../requests/PutObjectRequest.java | 32 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- bmc-optimizer/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psa/pom.xml | 4 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- bmc-redis/pom.xml | 4 +- bmc-resourceanalytics/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- .../bmc/resourcemanager/ResourceManager.java | 35 + .../resourcemanager/ResourceManagerAsync.java | 35 + .../ResourceManagerAsyncClient.java | 79 + .../ResourceManagerClient.java | 73 + .../model/LogEntryCollection.java | 133 + ...etWorkRequestLogEntriesContentRequest.java | 217 ++ .../GetWorkRequestLogEntriesRequest.java | 533 ++++ ...tWorkRequestLogEntriesContentResponse.java | 163 + .../GetWorkRequestLogEntriesResponse.java | 230 ++ .../reflect-config.json | 14 + bmc-resourcescheduler/pom.xml | 4 +- .../model/CreateScheduleDetails.java | 48 + .../bmc/resourcescheduler/model/Schedule.java | 48 + .../model/ScheduleSummary.java | 48 + .../model/UpdateScheduleDetails.java | 48 + bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-wlms/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 4 +- 615 files changed, 122052 insertions(+), 721 deletions(-) create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/QuickRecycleSettings.java create mode 100644 bmc-ddfs/pom.xml create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/Instance.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsync.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstancePaginators.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceWaiters.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ActionType.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ChangeInstanceCompartmentDetails.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/CreateInstanceDetails.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/Instance.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceCollection.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceSummary.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationStatus.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationType.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/SortOrder.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/UpdateInstanceDetails.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestError.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestErrorCollection.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntry.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResource.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResourceMetadataKey.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummary.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummaryCollection.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CancelWorkRequestRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ChangeInstanceCompartmentRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CreateInstanceRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/DeleteInstanceRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetInstanceRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetWorkRequestRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListInstancesRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestsRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/UpdateInstanceRequest.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CancelWorkRequestResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ChangeInstanceCompartmentResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CreateInstanceResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/DeleteInstanceResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetInstanceResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetWorkRequestResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListInstancesResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestsResponse.java create mode 100644 bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/UpdateInstanceResponse.java create mode 100644 bmc-ddfs/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ddfs/reflect-config.json create mode 100644 bmc-ddfs/src/main/resources/com/oracle/bmc/ddfs/client.properties create mode 100644 bmc-distributeddatabasev26/pom.xml create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceWaiters.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java create mode 100644 bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json create mode 100644 bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties create mode 100644 bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/LogEntryCollection.java create mode 100644 bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesContentRequest.java create mode 100644 bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesRequest.java create mode 100644 bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesContentResponse.java create mode 100644 bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index bae9c22f75a..247483aa756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.94.1 - 2026-08-11 +### Added +- Support for the OCI Device Data FHIR (Fast Healthcare Interoperability Resources) Service +- Support for the Globally Distributed Database service +- Support for availability domain selection during and after provisioning of autonomous databases in the Database service +- Support for system tags in virtual cloud networks and subnets in the Networking service +- Support for local time zones in the Resource Scheduler service +- Support for IPv6 dual-stack endpoints in the Object Storage service +- Support for B300 unit shapes in the Generative AI service +- Support for retrieving work request log entries and their content in the Resource Manager service +- Support for quick-recycle settings in compute host groups in the Compute service + ## 3.94.0 - 2026-08-04 ### Added - Support for cloning autonomous container databases from backups by timestamp and retrieving backup details in the Database service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 54415e1289f..d287807b5a4 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 2006d3a97de..ff42b211b6f 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index 2208ffc7ae3..f3718b2e4a3 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 0784e3cf5b7..f31dfb863db 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index a19d4468947..22dc6ed3abc 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.0 + 3.94.1 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 8a26487c96c..9c8df430f16 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ 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 9ab409f9981..25d41cd74a0 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.94.0 + 3.94.1 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 compile com.oracle.oci.sdk oci-java-sdk-core - 3.94.0 + 3.94.1 test com.oracle.oci.sdk oci-java-sdk-identity - 3.94.0 + 3.94.1 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.0 + 3.94.1 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 8b31ac5e9b8..fed7eaa5ca5 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index fa60105b4b4..72eb6a5f1f9 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.94.0 + 3.94.1 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.94.0 + 3.94.1 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.94.0 + 3.94.1 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 760fb3a7ef0..4fbdd1e1d07 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.0 + 3.94.1 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index f8718def37b..8ebf001d514 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.94.0 + 3.94.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.0 + 3.94.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.0 + 3.94.1 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 1c8d27e25a3..e1060edb09b 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.94.0 + 3.94.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.0 + 3.94.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index af5e107b9c9..8e452fb6160 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 60dea5e4782..a80f0bcae9f 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 222f3d5232c..f9ee5862c51 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 5d9aef629f5..31f1c5c5f05 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index fdbac0edb5f..78fd392be08 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 13cabcb9013..bba87fd71cc 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index c6151f45a94..3cecef73516 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index f3c9fdfb34c..3b3fe9fb88b 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 0aab9f31699..de329126e6d 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index 07057139a45..f72650e569e 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 7f0383af84f..4507b5fe2b6 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 6552905eac7..a4c73596223 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 9605daf2c13..38c3459173e 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 1f923e338d3..9ed793ddbc6 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 419358d2482..a49a23895f8 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 7d4c8eab412..84e2e32b8a7 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index e4ff145b754..055028bbefb 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index ad9fe8de7e4..3a0792b1787 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 3fb2818fefa..bc5d30d25c8 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index ebdd92ff38e..799cc727782 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 696650be549..d3921920438 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 47fb11f50a6..31d1216729b 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 7fab0b82775..69c7c44748c 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 3ada07dbbd1..e459d1c7d9d 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index a2ee8fa6bdf..c15b50bbf2c 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.94.0 + 3.94.1 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1117 +38,1129 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-audit - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-core - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-database - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dns - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-email - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-identity - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-waas - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-ons - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-budget - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-limits - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-functions - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-events - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-oce - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-oda - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-integration - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-vault - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-bds - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-cims - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-logging - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-sch - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-rover - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-jms - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-devops - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-waf - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-usage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-adm - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-waa - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-opa - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-queue - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-redis - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-psql - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-iot - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-psa - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-dif - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-batch - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-self - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-costad - 3.94.0 + 3.94.1 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.94.0 + 3.94.1 + false + + + com.oracle.oci.sdk + oci-java-sdk-ddfs + 3.94.1 + false + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabasev26 + 3.94.1 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 268c5395eb3..e2e806b685f 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index ec2eb6d89c1..e632cd30647 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index b9be6973ea1..4cc4864f6c0 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 846dfcfdd9b..7474a31e419 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index c3279ffe613..b6fafcca14f 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 93b2742be50..8f774c2dc9e 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 6b10b4be5e3..1a5765446df 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 78519f614e4..75f7385ac97 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 03703364c5a..c7241ce5948 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index a7a9fa89b47..b231236797e 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index 8baf41a3a6b..108dfb1df8e 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.94.0 + 3.94.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.94.0 + 3.94.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 12c710db538..c9be7512137 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.94.0 + 3.94.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.94.0 + 3.94.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index d5efcc6ad15..d08ffc6846c 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index d3fa761fffb..5742759e7d2 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 3c774178a7e..a15c44ff77e 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 3165dcf28d0..01b2f1d8372 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 7655e782736..6c359fb6060 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 55388ef9a4b..6aa24861c70 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 441cdf75739..57a9a45d4ee 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 78bf7f3b556..383d7d26a02 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index f458f196be6..99976a3058f 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.0 + 3.94.1 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CaptureFilter.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CaptureFilter.java index 20e099000b8..1135088cd8a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CaptureFilter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CaptureFilter.java @@ -34,6 +34,7 @@ public final class CaptureFilter extends com.oracle.bmc.http.client.internal.Exp "id", "lifecycleState", "filterType", + "systemTags", "timeCreated", "vtapCaptureFilterRules", "flowLogCaptureFilterRules" @@ -46,6 +47,7 @@ public CaptureFilter( String id, LifecycleState lifecycleState, FilterType filterType, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.List vtapCaptureFilterRules, java.util.List flowLogCaptureFilterRules) { @@ -57,6 +59,7 @@ public CaptureFilter( this.id = id; this.lifecycleState = lifecycleState; this.filterType = filterType; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vtapCaptureFilterRules = vtapCaptureFilterRules; this.flowLogCaptureFilterRules = flowLogCaptureFilterRules; @@ -202,6 +205,25 @@ public Builder filterType(FilterType filterType) { this.__explicitlySet__.add("filterType"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the capture filter was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -271,6 +293,7 @@ public CaptureFilter build() { this.id, this.lifecycleState, this.filterType, + this.systemTags, this.timeCreated, this.vtapCaptureFilterRules, this.flowLogCaptureFilterRules); @@ -303,6 +326,9 @@ public Builder copy(CaptureFilter model) { if (model.wasPropertyExplicitlySet("filterType")) { this.filterType(model.getFilterType()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -543,6 +569,23 @@ public FilterType getFilterType() { return filterType; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the capture filter was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -612,6 +655,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", filterType=").append(String.valueOf(this.filterType)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vtapCaptureFilterRules=").append(String.valueOf(this.vtapCaptureFilterRules)); sb.append(", flowLogCaptureFilterRules=") @@ -637,6 +681,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.filterType, other.filterType) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals( this.vtapCaptureFilterRules, other.vtapCaptureFilterRules) @@ -660,6 +705,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.filterType == null ? 43 : this.filterType.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java index bca54c37382..5bd7211e4d9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java @@ -45,6 +45,7 @@ public final class DhcpOptions extends com.oracle.bmc.http.client.internal.Expli "id", "lifecycleState", "options", + "systemTags", "timeCreated", "vcnId", "domainNameType" @@ -57,6 +58,7 @@ public DhcpOptions( String id, LifecycleState lifecycleState, java.util.List options, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId, DomainNameType domainNameType) { @@ -68,6 +70,7 @@ public DhcpOptions( this.id = id; this.lifecycleState = lifecycleState; this.options = options; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; this.domainNameType = domainNameType; @@ -213,6 +216,25 @@ public Builder options(java.util.List options) { this.__explicitlySet__.add("options"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * Date and time the set of DHCP options was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -284,6 +306,7 @@ public DhcpOptions build() { this.id, this.lifecycleState, this.options, + this.systemTags, this.timeCreated, this.vcnId, this.domainNameType); @@ -316,6 +339,9 @@ public Builder copy(DhcpOptions model) { if (model.wasPropertyExplicitlySet("options")) { this.options(model.getOptions()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -509,6 +535,23 @@ public java.util.List getOptions() { return options; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * Date and time the set of DHCP options was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -629,6 +672,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", options=").append(String.valueOf(this.options)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", domainNameType=").append(String.valueOf(this.domainNameType)); @@ -653,6 +697,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.options, other.options) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.domainNameType, other.domainNameType) @@ -674,6 +719,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.options == null ? 43 : this.options.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/HostGroupConfiguration.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/HostGroupConfiguration.java index 466b17e6f85..2d79acf08cc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/HostGroupConfiguration.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/HostGroupConfiguration.java @@ -23,13 +23,24 @@ public final class HostGroupConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"target", "firmwareBundleId", "recycleLevel", "state"}) + @java.beans.ConstructorProperties({ + "target", + "firmwareBundleId", + "recycleLevel", + "quickRecycleSettings", + "state" + }) public HostGroupConfiguration( - String target, String firmwareBundleId, RecycleLevel recycleLevel, State state) { + String target, + String firmwareBundleId, + RecycleLevel recycleLevel, + QuickRecycleSettings quickRecycleSettings, + State state) { super(); this.target = target; this.firmwareBundleId = firmwareBundleId; this.recycleLevel = recycleLevel; + this.quickRecycleSettings = quickRecycleSettings; this.state = state; } @@ -86,6 +97,15 @@ public Builder recycleLevel(RecycleLevel recycleLevel) { this.__explicitlySet__.add("recycleLevel"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("quickRecycleSettings") + private QuickRecycleSettings quickRecycleSettings; + + public Builder quickRecycleSettings(QuickRecycleSettings quickRecycleSettings) { + this.quickRecycleSettings = quickRecycleSettings; + this.__explicitlySet__.add("quickRecycleSettings"); + return this; + } /** The state of the host group configuration. */ @com.fasterxml.jackson.annotation.JsonProperty("state") private State state; @@ -108,7 +128,11 @@ public Builder state(State state) { public HostGroupConfiguration build() { HostGroupConfiguration model = new HostGroupConfiguration( - this.target, this.firmwareBundleId, this.recycleLevel, this.state); + this.target, + this.firmwareBundleId, + this.recycleLevel, + this.quickRecycleSettings, + this.state); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -126,6 +150,9 @@ public Builder copy(HostGroupConfiguration model) { if (model.wasPropertyExplicitlySet("recycleLevel")) { this.recycleLevel(model.getRecycleLevel()); } + if (model.wasPropertyExplicitlySet("quickRecycleSettings")) { + this.quickRecycleSettings(model.getQuickRecycleSettings()); + } if (model.wasPropertyExplicitlySet("state")) { this.state(model.getState()); } @@ -237,6 +264,13 @@ public RecycleLevel getRecycleLevel() { return recycleLevel; } + @com.fasterxml.jackson.annotation.JsonProperty("quickRecycleSettings") + private final QuickRecycleSettings quickRecycleSettings; + + public QuickRecycleSettings getQuickRecycleSettings() { + return quickRecycleSettings; + } + /** The state of the host group configuration. */ public enum State implements com.oracle.bmc.http.internal.BmcEnum { Valid("VALID"), @@ -313,6 +347,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("target=").append(String.valueOf(this.target)); sb.append(", firmwareBundleId=").append(String.valueOf(this.firmwareBundleId)); sb.append(", recycleLevel=").append(String.valueOf(this.recycleLevel)); + sb.append(", quickRecycleSettings=").append(String.valueOf(this.quickRecycleSettings)); sb.append(", state=").append(String.valueOf(this.state)); sb.append(")"); return sb.toString(); @@ -331,6 +366,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.target, other.target) && java.util.Objects.equals(this.firmwareBundleId, other.firmwareBundleId) && java.util.Objects.equals(this.recycleLevel, other.recycleLevel) + && java.util.Objects.equals(this.quickRecycleSettings, other.quickRecycleSettings) && java.util.Objects.equals(this.state, other.state) && super.equals(other); } @@ -344,6 +380,11 @@ public int hashCode() { (result * PRIME) + (this.firmwareBundleId == null ? 43 : this.firmwareBundleId.hashCode()); result = (result * PRIME) + (this.recycleLevel == null ? 43 : this.recycleLevel.hashCode()); + result = + (result * PRIME) + + (this.quickRecycleSettings == null + ? 43 + : this.quickRecycleSettings.hashCode()); result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java index 1b7b05aa127..896720dcf0f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java @@ -37,6 +37,7 @@ public final class InternetGateway "id", "isEnabled", "lifecycleState", + "systemTags", "timeCreated", "vcnId", "routeTableId" @@ -49,6 +50,7 @@ public InternetGateway( String id, Boolean isEnabled, LifecycleState lifecycleState, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId, String routeTableId) { @@ -60,6 +62,7 @@ public InternetGateway( this.id = id; this.isEnabled = isEnabled; this.lifecycleState = lifecycleState; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; this.routeTableId = routeTableId; @@ -209,6 +212,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the internet gateway was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -284,6 +306,7 @@ public InternetGateway build() { this.id, this.isEnabled, this.lifecycleState, + this.systemTags, this.timeCreated, this.vcnId, this.routeTableId); @@ -316,6 +339,9 @@ public Builder copy(InternetGateway model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -513,6 +539,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the internet gateway was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -590,6 +633,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); @@ -614,6 +658,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.routeTableId, other.routeTableId) @@ -635,6 +680,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java index 6c292cb8ef6..8a7cb63af2f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java @@ -39,6 +39,7 @@ public final class Ipv6 extends com.oracle.bmc.http.client.internal.ExplicitlySe "cidrPrefixLength", "lifecycleState", "subnetId", + "systemTags", "timeCreated", "vnicId", "ipState", @@ -56,6 +57,7 @@ public Ipv6( Integer cidrPrefixLength, LifecycleState lifecycleState, String subnetId, + java.util.Map> systemTags, java.util.Date timeCreated, String vnicId, IpState ipState, @@ -72,6 +74,7 @@ public Ipv6( this.cidrPrefixLength = cidrPrefixLength; this.lifecycleState = lifecycleState; this.subnetId = subnetId; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vnicId = vnicId; this.ipState = ipState; @@ -262,6 +265,25 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the IPv6 was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -390,6 +412,7 @@ public Ipv6 build() { this.cidrPrefixLength, this.lifecycleState, this.subnetId, + this.systemTags, this.timeCreated, this.vnicId, this.ipState, @@ -431,6 +454,9 @@ public Builder copy(Ipv6 model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -671,6 +697,23 @@ public String getSubnetId() { return subnetId; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the IPv6 was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -890,6 +933,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", cidrPrefixLength=").append(String.valueOf(this.cidrPrefixLength)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); sb.append(", ipState=").append(String.valueOf(this.ipState)); @@ -919,6 +963,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.cidrPrefixLength, other.cidrPrefixLength) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vnicId, other.vnicId) && java.util.Objects.equals(this.ipState, other.ipState) @@ -947,6 +992,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); result = (result * PRIME) + (this.ipState == null ? 43 : this.ipState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java index 4e12c210c44..d155d42a51f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java @@ -70,6 +70,7 @@ public final class NetworkSecurityGroup "freeformTags", "id", "lifecycleState", + "systemTags", "timeCreated", "vcnId" }) @@ -80,6 +81,7 @@ public NetworkSecurityGroup( java.util.Map freeformTags, String id, LifecycleState lifecycleState, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId) { super(); @@ -89,6 +91,7 @@ public NetworkSecurityGroup( this.freeformTags = freeformTags; this.id = id; this.lifecycleState = lifecycleState; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; } @@ -218,6 +221,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the network security group was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -273,6 +295,7 @@ public NetworkSecurityGroup build() { this.freeformTags, this.id, this.lifecycleState, + this.systemTags, this.timeCreated, this.vcnId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -301,6 +324,9 @@ public Builder copy(NetworkSecurityGroup model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -478,6 +504,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the network security group was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -537,6 +580,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(")"); @@ -559,6 +603,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && super.equals(other); @@ -578,6 +623,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/QuickRecycleSettings.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/QuickRecycleSettings.java new file mode 100644 index 00000000000..05eeae55989 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/QuickRecycleSettings.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.core.model; + +/** + * Additional quick recycle 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QuickRecycleSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QuickRecycleSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"nvmeWipe"}) + public QuickRecycleSettings(Boolean nvmeWipe) { + super(); + this.nvmeWipe = nvmeWipe; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Whether to wipe NVMe data during quick recycle. */ + @com.fasterxml.jackson.annotation.JsonProperty("nvmeWipe") + private Boolean nvmeWipe; + + /** + * Whether to wipe NVMe data during quick recycle. + * + * @param nvmeWipe the value to set + * @return this builder + */ + public Builder nvmeWipe(Boolean nvmeWipe) { + this.nvmeWipe = nvmeWipe; + this.__explicitlySet__.add("nvmeWipe"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public QuickRecycleSettings build() { + QuickRecycleSettings model = new QuickRecycleSettings(this.nvmeWipe); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QuickRecycleSettings model) { + if (model.wasPropertyExplicitlySet("nvmeWipe")) { + this.nvmeWipe(model.getNvmeWipe()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Whether to wipe NVMe data during quick recycle. */ + @com.fasterxml.jackson.annotation.JsonProperty("nvmeWipe") + private final Boolean nvmeWipe; + + /** + * Whether to wipe NVMe data during quick recycle. + * + * @return the value + */ + public Boolean getNvmeWipe() { + return nvmeWipe; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("QuickRecycleSettings("); + sb.append("super=").append(super.toString()); + sb.append("nvmeWipe=").append(String.valueOf(this.nvmeWipe)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QuickRecycleSettings)) { + return false; + } + + QuickRecycleSettings other = (QuickRecycleSettings) o; + return java.util.Objects.equals(this.nvmeWipe, other.nvmeWipe) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.nvmeWipe == null ? 43 : this.nvmeWipe.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java index defcc8de609..a37078a4287 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java @@ -36,6 +36,7 @@ public final class RouteTable extends com.oracle.bmc.http.client.internal.Explic "id", "lifecycleState", "routeRules", + "systemTags", "timeCreated", "vcnId" }) @@ -47,6 +48,7 @@ public RouteTable( String id, LifecycleState lifecycleState, java.util.List routeRules, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId) { super(); @@ -57,6 +59,7 @@ public RouteTable( this.id = id; this.lifecycleState = lifecycleState; this.routeRules = routeRules; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; } @@ -201,6 +204,25 @@ public Builder routeRules(java.util.List routeRules) { this.__explicitlySet__.add("routeRules"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the route table was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -257,6 +279,7 @@ public RouteTable build() { this.id, this.lifecycleState, this.routeRules, + this.systemTags, this.timeCreated, this.vcnId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -288,6 +311,9 @@ public Builder copy(RouteTable model) { if (model.wasPropertyExplicitlySet("routeRules")) { this.routeRules(model.getRouteRules()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -478,6 +504,23 @@ public java.util.List getRouteRules() { return routeRules; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the route table was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -538,6 +581,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", routeRules=").append(String.valueOf(this.routeRules)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(")"); @@ -561,6 +605,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.routeRules, other.routeRules) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && super.equals(other); @@ -581,6 +626,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.routeRules == null ? 43 : this.routeRules.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java index 053abb52514..50e31d08f8b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java @@ -46,6 +46,7 @@ public final class SecurityList extends com.oracle.bmc.http.client.internal.Expl "id", "ingressSecurityRules", "lifecycleState", + "systemTags", "timeCreated", "vcnId" }) @@ -58,6 +59,7 @@ public SecurityList( String id, java.util.List ingressSecurityRules, LifecycleState lifecycleState, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId) { super(); @@ -69,6 +71,7 @@ public SecurityList( this.id = id; this.ingressSecurityRules = ingressSecurityRules; this.lifecycleState = lifecycleState; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; } @@ -229,6 +232,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the security list was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -286,6 +308,7 @@ public SecurityList build() { this.id, this.ingressSecurityRules, this.lifecycleState, + this.systemTags, this.timeCreated, this.vcnId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -320,6 +343,9 @@ public Builder copy(SecurityList model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -523,6 +549,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the security list was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -584,6 +627,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", ingressSecurityRules=").append(String.valueOf(this.ingressSecurityRules)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(")"); @@ -608,6 +652,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ingressSecurityRules, other.ingressSecurityRules) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && super.equals(other); @@ -637,6 +682,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java index cd8e8ff2132..170bd73040f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java @@ -50,6 +50,7 @@ public final class Subnet extends com.oracle.bmc.http.client.internal.Explicitly "routeTableId", "securityListIds", "subnetDomainName", + "systemTags", "timeCreated", "vcnId", "virtualRouterIp", @@ -75,6 +76,7 @@ public Subnet( String routeTableId, java.util.List securityListIds, String subnetDomainName, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId, String virtualRouterIp, @@ -99,6 +101,7 @@ public Subnet( this.routeTableId = routeTableId; this.securityListIds = securityListIds; this.subnetDomainName = subnetDomainName; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; this.virtualRouterIp = virtualRouterIp; @@ -567,6 +570,25 @@ public Builder subnetDomainName(String subnetDomainName) { this.__explicitlySet__.add("subnetDomainName"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the subnet was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -677,6 +699,7 @@ public Subnet build() { this.routeTableId, this.securityListIds, this.subnetDomainName, + this.systemTags, this.timeCreated, this.vcnId, this.virtualRouterIp, @@ -746,6 +769,9 @@ public Builder copy(Subnet model) { if (model.wasPropertyExplicitlySet("subnetDomainName")) { this.subnetDomainName(model.getSubnetDomainName()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -1235,6 +1261,23 @@ public String getSubnetDomainName() { return subnetDomainName; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the subnet was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -1346,6 +1389,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", securityListIds=").append(String.valueOf(this.securityListIds)); sb.append(", subnetDomainName=").append(String.valueOf(this.subnetDomainName)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", virtualRouterIp=").append(String.valueOf(this.virtualRouterIp)); @@ -1385,6 +1429,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.securityListIds, other.securityListIds) && java.util.Objects.equals(this.subnetDomainName, other.subnetDomainName) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.virtualRouterIp, other.virtualRouterIp) @@ -1447,6 +1492,7 @@ public int hashCode() { result = (result * PRIME) + (this.subnetDomainName == null ? 43 : this.subnetDomainName.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java index 23431b64490..b72c90d38ab 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java @@ -41,6 +41,7 @@ public final class Vcn extends com.oracle.bmc.http.client.internal.ExplicitlySet "dnsLabel", "freeformTags", "securityAttributes", + "systemTags", "id", "ipv6CidrBlocks", "lifecycleState", @@ -62,6 +63,7 @@ public Vcn( String dnsLabel, java.util.Map freeformTags, java.util.Map> securityAttributes, + java.util.Map> systemTags, String id, java.util.List ipv6CidrBlocks, LifecycleState lifecycleState, @@ -82,6 +84,7 @@ public Vcn( this.dnsLabel = dnsLabel; this.freeformTags = freeformTags; this.securityAttributes = securityAttributes; + this.systemTags = systemTags; this.id = id; this.ipv6CidrBlocks = ipv6CidrBlocks; this.lifecycleState = lifecycleState; @@ -379,6 +382,25 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The VCN's Oracle ID * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). @@ -519,6 +541,7 @@ public Vcn build() { this.dnsLabel, this.freeformTags, this.securityAttributes, + this.systemTags, this.id, this.ipv6CidrBlocks, this.lifecycleState, @@ -572,6 +595,9 @@ public Builder copy(Vcn model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -862,6 +888,23 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The VCN's Oracle ID * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). @@ -1047,6 +1090,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dnsLabel=").append(String.valueOf(this.dnsLabel)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", ipv6CidrBlocks=").append(String.valueOf(this.ipv6CidrBlocks)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -1080,6 +1124,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dnsLabel, other.dnsLabel) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ipv6CidrBlocks, other.ipv6CidrBlocks) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -1130,6 +1175,7 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vlan.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vlan.java index d5cb579692b..32b7555bdb4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vlan.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vlan.java @@ -41,6 +41,7 @@ public final class Vlan extends com.oracle.bmc.http.client.internal.ExplicitlySe "nsgIds", "vlanTag", "routeTableId", + "systemTags", "timeCreated", "vcnId" }) @@ -56,6 +57,7 @@ public Vlan( java.util.List nsgIds, Integer vlanTag, String routeTableId, + java.util.Map> systemTags, java.util.Date timeCreated, String vcnId) { super(); @@ -70,6 +72,7 @@ public Vlan( this.nsgIds = nsgIds; this.vlanTag = vlanTag; this.routeTableId = routeTableId; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.vcnId = vcnId; } @@ -306,6 +309,25 @@ public Builder routeTableId(String routeTableId) { this.__explicitlySet__.add("routeTableId"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the VLAN was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -366,6 +388,7 @@ public Vlan build() { this.nsgIds, this.vlanTag, this.routeTableId, + this.systemTags, this.timeCreated, this.vcnId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -409,6 +432,9 @@ public Builder copy(Vlan model) { if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -684,6 +710,23 @@ public String getRouteTableId() { return routeTableId; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the VLAN was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -748,6 +791,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", vlanTag=").append(String.valueOf(this.vlanTag)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(")"); @@ -775,6 +819,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.vlanTag, other.vlanTag) && java.util.Objects.equals(this.routeTableId, other.routeTableId) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vcnId, other.vcnId) && super.equals(other); @@ -803,6 +848,7 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.vlanTag == null ? 43 : this.vlanTag.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java index d29fa1b8132..97fe703ed50 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java @@ -57,6 +57,7 @@ public final class Vnic extends com.oracle.bmc.http.client.internal.ExplicitlySe "publicIp", "skipSourceDestCheck", "subnetId", + "systemTags", "timeCreated", "ipv6Addresses", "routeTableId" @@ -79,6 +80,7 @@ public Vnic( String publicIp, Boolean skipSourceDestCheck, String subnetId, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.List ipv6Addresses, String routeTableId) { @@ -100,6 +102,7 @@ public Vnic( this.publicIp = publicIp; this.skipSourceDestCheck = skipSourceDestCheck; this.subnetId = subnetId; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.ipv6Addresses = ipv6Addresses; this.routeTableId = routeTableId; @@ -514,6 +517,25 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the VNIC was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -603,6 +625,7 @@ public Vnic build() { this.publicIp, this.skipSourceDestCheck, this.subnetId, + this.systemTags, this.timeCreated, this.ipv6Addresses, this.routeTableId); @@ -665,6 +688,9 @@ public Builder copy(Vnic model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -1104,6 +1130,23 @@ public String getSubnetId() { return subnetId; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the VNIC was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -1195,6 +1238,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", publicIp=").append(String.valueOf(this.publicIp)); sb.append(", skipSourceDestCheck=").append(String.valueOf(this.skipSourceDestCheck)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", ipv6Addresses=").append(String.valueOf(this.ipv6Addresses)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); @@ -1229,6 +1273,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.publicIp, other.publicIp) && java.util.Objects.equals(this.skipSourceDestCheck, other.skipSourceDestCheck) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.ipv6Addresses, other.ipv6Addresses) && java.util.Objects.equals(this.routeTableId, other.routeTableId) @@ -1274,6 +1319,7 @@ public int hashCode() { ? 43 : this.skipSourceDestCheck.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java index 5c8f10fe45d..3f5788a8fac 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java @@ -37,6 +37,7 @@ public final class Vtap extends com.oracle.bmc.http.client.internal.ExplicitlySe "id", "lifecycleState", "lifecycleStateDetails", + "systemTags", "timeCreated", "sourceId", "targetId", @@ -61,6 +62,7 @@ public Vtap( String id, LifecycleState lifecycleState, LifecycleStateDetails lifecycleStateDetails, + java.util.Map> systemTags, java.util.Date timeCreated, String sourceId, String targetId, @@ -84,6 +86,7 @@ public Vtap( this.id = id; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.sourceId = sourceId; this.targetId = targetId; @@ -259,6 +262,25 @@ public Builder lifecycleStateDetails(LifecycleStateDetails lifecycleStateDetails this.__explicitlySet__.add("lifecycleStateDetails"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the VTAP was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -524,6 +546,7 @@ public Vtap build() { this.id, this.lifecycleState, this.lifecycleStateDetails, + this.systemTags, this.timeCreated, this.sourceId, this.targetId, @@ -570,6 +593,9 @@ public Builder copy(Vtap model) { if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { this.lifecycleStateDetails(model.getLifecycleStateDetails()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -860,6 +886,23 @@ public LifecycleStateDetails getLifecycleStateDetails() { return lifecycleStateDetails; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the VTAP was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). @@ -1296,6 +1339,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", sourceId=").append(String.valueOf(this.sourceId)); sb.append(", targetId=").append(String.valueOf(this.targetId)); @@ -1334,6 +1378,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.sourceId, other.sourceId) && java.util.Objects.equals(this.targetId, other.targetId) @@ -1374,6 +1419,7 @@ public int hashCode() { + (this.lifecycleStateDetails == null ? 43 : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.sourceId == null ? 43 : this.sourceId.hashCode()); result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); diff --git a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json index 68f0ee4db01..2d278a3a947 100644 --- a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json +++ b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json @@ -8579,6 +8579,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.QuickRecycleSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.QuickRecycleSettings$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.RebootMigrateActionDetails", diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 86b003dafc5..7f5be5e7089 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index b6292fde6bc..08f4267a662 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 4f571d5a797..95a6e8eccd1 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.0 + 3.94.1 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 28da024977c..1b2bbcf4899 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -160,6 +160,10 @@ public final class AutonomousDatabase "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", + "adScheduledForUpdate", + "timeEarliestAvailableAdUpdate", + "timeLatestAvailableAdUpdate", + "timeScheduledAdUpdate", "cloneTableSpaceList", "cloneType", "additionalAttributes", @@ -302,6 +306,10 @@ public AutonomousDatabase( NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, + String adScheduledForUpdate, + java.util.Date timeEarliestAvailableAdUpdate, + java.util.Date timeLatestAvailableAdUpdate, + java.util.Date timeScheduledAdUpdate, java.util.List cloneTableSpaceList, CloneType cloneType, java.util.Map additionalAttributes, @@ -443,6 +451,10 @@ public AutonomousDatabase( this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; + this.adScheduledForUpdate = adScheduledForUpdate; + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.timeScheduledAdUpdate = timeScheduledAdUpdate; this.cloneTableSpaceList = cloneTableSpaceList; this.cloneType = cloneType; this.additionalAttributes = additionalAttributes; @@ -3326,6 +3338,78 @@ public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { this.__explicitlySet__.add("clusterPlacementGroupId"); return this; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @param adScheduledForUpdate the value to set + * @return this builder + */ + public Builder adScheduledForUpdate(String adScheduledForUpdate) { + this.adScheduledForUpdate = adScheduledForUpdate; + this.__explicitlySet__.add("adScheduledForUpdate"); + return this; + } + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeEarliestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeEarliestAvailableAdUpdate(java.util.Date timeEarliestAvailableAdUpdate) { + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.__explicitlySet__.add("timeEarliestAvailableAdUpdate"); + return this; + } + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeLatestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeLatestAvailableAdUpdate(java.util.Date timeLatestAvailableAdUpdate) { + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.__explicitlySet__.add("timeLatestAvailableAdUpdate"); + return this; + } + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + * + * @param timeScheduledAdUpdate the value to set + * @return this builder + */ + public Builder timeScheduledAdUpdate(java.util.Date timeScheduledAdUpdate) { + this.timeScheduledAdUpdate = timeScheduledAdUpdate; + this.__explicitlySet__.add("timeScheduledAdUpdate"); + return this; + } /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -3543,6 +3627,10 @@ public AutonomousDatabase build() { this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, + this.adScheduledForUpdate, + this.timeEarliestAvailableAdUpdate, + this.timeLatestAvailableAdUpdate, + this.timeScheduledAdUpdate, this.cloneTableSpaceList, this.cloneType, this.additionalAttributes, @@ -3971,6 +4059,18 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); } + if (model.wasPropertyExplicitlySet("adScheduledForUpdate")) { + this.adScheduledForUpdate(model.getAdScheduledForUpdate()); + } + if (model.wasPropertyExplicitlySet("timeEarliestAvailableAdUpdate")) { + this.timeEarliestAvailableAdUpdate(model.getTimeEarliestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeLatestAvailableAdUpdate")) { + this.timeLatestAvailableAdUpdate(model.getTimeLatestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeScheduledAdUpdate")) { + this.timeScheduledAdUpdate(model.getTimeScheduledAdUpdate()); + } if (model.wasPropertyExplicitlySet("cloneTableSpaceList")) { this.cloneTableSpaceList(model.getCloneTableSpaceList()); } @@ -7482,6 +7582,68 @@ public String getClusterPlacementGroupId() { return clusterPlacementGroupId; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private final String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @return the value + */ + public String getAdScheduledForUpdate() { + return adScheduledForUpdate; + } + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private final java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @return the value + */ + public java.util.Date getTimeEarliestAvailableAdUpdate() { + return timeEarliestAvailableAdUpdate; + } + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private final java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + * + * @return the value + */ + public java.util.Date getTimeLatestAvailableAdUpdate() { + return timeLatestAvailableAdUpdate; + } + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private final java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + * + * @return the value + */ + public java.util.Date getTimeScheduledAdUpdate() { + return timeScheduledAdUpdate; + } + /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -7792,6 +7954,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); + sb.append(", adScheduledForUpdate=").append(String.valueOf(this.adScheduledForUpdate)); + sb.append(", timeEarliestAvailableAdUpdate=") + .append(String.valueOf(this.timeEarliestAvailableAdUpdate)); + sb.append(", timeLatestAvailableAdUpdate=") + .append(String.valueOf(this.timeLatestAvailableAdUpdate)); + sb.append(", timeScheduledAdUpdate=").append(String.valueOf(this.timeScheduledAdUpdate)); sb.append(", cloneTableSpaceList=").append(String.valueOf(this.cloneTableSpaceList)); sb.append(", cloneType=").append(String.valueOf(this.cloneType)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); @@ -8006,6 +8174,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) + && java.util.Objects.equals(this.adScheduledForUpdate, other.adScheduledForUpdate) + && java.util.Objects.equals( + this.timeEarliestAvailableAdUpdate, other.timeEarliestAvailableAdUpdate) + && java.util.Objects.equals( + this.timeLatestAvailableAdUpdate, other.timeLatestAvailableAdUpdate) + && java.util.Objects.equals(this.timeScheduledAdUpdate, other.timeScheduledAdUpdate) && java.util.Objects.equals(this.cloneTableSpaceList, other.cloneTableSpaceList) && java.util.Objects.equals(this.cloneType, other.cloneType) && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) @@ -8512,6 +8686,26 @@ public int hashCode() { + (this.clusterPlacementGroupId == null ? 43 : this.clusterPlacementGroupId.hashCode()); + result = + (result * PRIME) + + (this.adScheduledForUpdate == null + ? 43 + : this.adScheduledForUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeEarliestAvailableAdUpdate == null + ? 43 + : this.timeEarliestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeLatestAvailableAdUpdate == null + ? 43 + : this.timeLatestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledAdUpdate == null + ? 43 + : this.timeScheduledAdUpdate.hashCode()); result = (result * PRIME) + (this.cloneTableSpaceList == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index 40a2413e429..d75216f69d8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -162,6 +162,10 @@ public final class AutonomousDatabaseSummary "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", + "adScheduledForUpdate", + "timeEarliestAvailableAdUpdate", + "timeLatestAvailableAdUpdate", + "timeScheduledAdUpdate", "cloneTableSpaceList", "cloneType", "additionalAttributes", @@ -303,6 +307,10 @@ public AutonomousDatabaseSummary( NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, + String adScheduledForUpdate, + java.util.Date timeEarliestAvailableAdUpdate, + java.util.Date timeLatestAvailableAdUpdate, + java.util.Date timeScheduledAdUpdate, java.util.List cloneTableSpaceList, CloneType cloneType, java.util.Map additionalAttributes, @@ -443,6 +451,10 @@ public AutonomousDatabaseSummary( this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; + this.adScheduledForUpdate = adScheduledForUpdate; + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.timeScheduledAdUpdate = timeScheduledAdUpdate; this.cloneTableSpaceList = cloneTableSpaceList; this.cloneType = cloneType; this.additionalAttributes = additionalAttributes; @@ -3307,6 +3319,78 @@ public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { this.__explicitlySet__.add("clusterPlacementGroupId"); return this; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @param adScheduledForUpdate the value to set + * @return this builder + */ + public Builder adScheduledForUpdate(String adScheduledForUpdate) { + this.adScheduledForUpdate = adScheduledForUpdate; + this.__explicitlySet__.add("adScheduledForUpdate"); + return this; + } + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeEarliestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeEarliestAvailableAdUpdate(java.util.Date timeEarliestAvailableAdUpdate) { + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.__explicitlySet__.add("timeEarliestAvailableAdUpdate"); + return this; + } + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeLatestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeLatestAvailableAdUpdate(java.util.Date timeLatestAvailableAdUpdate) { + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.__explicitlySet__.add("timeLatestAvailableAdUpdate"); + return this; + } + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + * + * @param timeScheduledAdUpdate the value to set + * @return this builder + */ + public Builder timeScheduledAdUpdate(java.util.Date timeScheduledAdUpdate) { + this.timeScheduledAdUpdate = timeScheduledAdUpdate; + this.__explicitlySet__.add("timeScheduledAdUpdate"); + return this; + } /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -3523,6 +3607,10 @@ public AutonomousDatabaseSummary build() { this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, + this.adScheduledForUpdate, + this.timeEarliestAvailableAdUpdate, + this.timeLatestAvailableAdUpdate, + this.timeScheduledAdUpdate, this.cloneTableSpaceList, this.cloneType, this.additionalAttributes, @@ -3948,6 +4036,18 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); } + if (model.wasPropertyExplicitlySet("adScheduledForUpdate")) { + this.adScheduledForUpdate(model.getAdScheduledForUpdate()); + } + if (model.wasPropertyExplicitlySet("timeEarliestAvailableAdUpdate")) { + this.timeEarliestAvailableAdUpdate(model.getTimeEarliestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeLatestAvailableAdUpdate")) { + this.timeLatestAvailableAdUpdate(model.getTimeLatestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeScheduledAdUpdate")) { + this.timeScheduledAdUpdate(model.getTimeScheduledAdUpdate()); + } if (model.wasPropertyExplicitlySet("cloneTableSpaceList")) { this.cloneTableSpaceList(model.getCloneTableSpaceList()); } @@ -7442,6 +7542,68 @@ public String getClusterPlacementGroupId() { return clusterPlacementGroupId; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private final String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @return the value + */ + public String getAdScheduledForUpdate() { + return adScheduledForUpdate; + } + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private final java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @return the value + */ + public java.util.Date getTimeEarliestAvailableAdUpdate() { + return timeEarliestAvailableAdUpdate; + } + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private final java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + * + * @return the value + */ + public java.util.Date getTimeLatestAvailableAdUpdate() { + return timeLatestAvailableAdUpdate; + } + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private final java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + * + * @return the value + */ + public java.util.Date getTimeScheduledAdUpdate() { + return timeScheduledAdUpdate; + } + /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -7751,6 +7913,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); + sb.append(", adScheduledForUpdate=").append(String.valueOf(this.adScheduledForUpdate)); + sb.append(", timeEarliestAvailableAdUpdate=") + .append(String.valueOf(this.timeEarliestAvailableAdUpdate)); + sb.append(", timeLatestAvailableAdUpdate=") + .append(String.valueOf(this.timeLatestAvailableAdUpdate)); + sb.append(", timeScheduledAdUpdate=").append(String.valueOf(this.timeScheduledAdUpdate)); sb.append(", cloneTableSpaceList=").append(String.valueOf(this.cloneTableSpaceList)); sb.append(", cloneType=").append(String.valueOf(this.cloneType)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); @@ -7964,6 +8132,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) + && java.util.Objects.equals(this.adScheduledForUpdate, other.adScheduledForUpdate) + && java.util.Objects.equals( + this.timeEarliestAvailableAdUpdate, other.timeEarliestAvailableAdUpdate) + && java.util.Objects.equals( + this.timeLatestAvailableAdUpdate, other.timeLatestAvailableAdUpdate) + && java.util.Objects.equals(this.timeScheduledAdUpdate, other.timeScheduledAdUpdate) && java.util.Objects.equals(this.cloneTableSpaceList, other.cloneTableSpaceList) && java.util.Objects.equals(this.cloneType, other.cloneType) && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) @@ -8465,6 +8639,26 @@ public int hashCode() { + (this.clusterPlacementGroupId == null ? 43 : this.clusterPlacementGroupId.hashCode()); + result = + (result * PRIME) + + (this.adScheduledForUpdate == null + ? 43 + : this.adScheduledForUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeEarliestAvailableAdUpdate == null + ? 43 + : this.timeEarliestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeLatestAvailableAdUpdate == null + ? 43 + : this.timeLatestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledAdUpdate == null + ? 43 + : this.timeScheduledAdUpdate.hashCode()); result = (result * PRIME) + (this.cloneTableSpaceList == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java index 61fee20e988..f7cc4c51021 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java @@ -159,6 +159,10 @@ public final class AutonomousDwDatabase "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", + "adScheduledForUpdate", + "timeEarliestAvailableAdUpdate", + "timeLatestAvailableAdUpdate", + "timeScheduledAdUpdate", "cloneTableSpaceList", "cloneType", "additionalAttributes", @@ -300,6 +304,10 @@ public AutonomousDwDatabase( NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, + String adScheduledForUpdate, + java.util.Date timeEarliestAvailableAdUpdate, + java.util.Date timeLatestAvailableAdUpdate, + java.util.Date timeScheduledAdUpdate, java.util.List cloneTableSpaceList, CloneType cloneType, java.util.Map additionalAttributes, @@ -440,6 +448,10 @@ public AutonomousDwDatabase( this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; + this.adScheduledForUpdate = adScheduledForUpdate; + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.timeScheduledAdUpdate = timeScheduledAdUpdate; this.cloneTableSpaceList = cloneTableSpaceList; this.cloneType = cloneType; this.additionalAttributes = additionalAttributes; @@ -3304,6 +3316,78 @@ public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { this.__explicitlySet__.add("clusterPlacementGroupId"); return this; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @param adScheduledForUpdate the value to set + * @return this builder + */ + public Builder adScheduledForUpdate(String adScheduledForUpdate) { + this.adScheduledForUpdate = adScheduledForUpdate; + this.__explicitlySet__.add("adScheduledForUpdate"); + return this; + } + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeEarliestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeEarliestAvailableAdUpdate(java.util.Date timeEarliestAvailableAdUpdate) { + this.timeEarliestAvailableAdUpdate = timeEarliestAvailableAdUpdate; + this.__explicitlySet__.add("timeEarliestAvailableAdUpdate"); + return this; + } + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @param timeLatestAvailableAdUpdate the value to set + * @return this builder + */ + public Builder timeLatestAvailableAdUpdate(java.util.Date timeLatestAvailableAdUpdate) { + this.timeLatestAvailableAdUpdate = timeLatestAvailableAdUpdate; + this.__explicitlySet__.add("timeLatestAvailableAdUpdate"); + return this; + } + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is + * scheduled. + * + * @param timeScheduledAdUpdate the value to set + * @return this builder + */ + public Builder timeScheduledAdUpdate(java.util.Date timeScheduledAdUpdate) { + this.timeScheduledAdUpdate = timeScheduledAdUpdate; + this.__explicitlySet__.add("timeScheduledAdUpdate"); + return this; + } /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -3520,6 +3604,10 @@ public AutonomousDwDatabase build() { this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, + this.adScheduledForUpdate, + this.timeEarliestAvailableAdUpdate, + this.timeLatestAvailableAdUpdate, + this.timeScheduledAdUpdate, this.cloneTableSpaceList, this.cloneType, this.additionalAttributes, @@ -3945,6 +4033,18 @@ public Builder copy(AutonomousDwDatabase model) { if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); } + if (model.wasPropertyExplicitlySet("adScheduledForUpdate")) { + this.adScheduledForUpdate(model.getAdScheduledForUpdate()); + } + if (model.wasPropertyExplicitlySet("timeEarliestAvailableAdUpdate")) { + this.timeEarliestAvailableAdUpdate(model.getTimeEarliestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeLatestAvailableAdUpdate")) { + this.timeLatestAvailableAdUpdate(model.getTimeLatestAvailableAdUpdate()); + } + if (model.wasPropertyExplicitlySet("timeScheduledAdUpdate")) { + this.timeScheduledAdUpdate(model.getTimeScheduledAdUpdate()); + } if (model.wasPropertyExplicitlySet("cloneTableSpaceList")) { this.cloneTableSpaceList(model.getCloneTableSpaceList()); } @@ -7207,6 +7307,68 @@ public String getClusterPlacementGroupId() { return clusterPlacementGroupId; } + /** The Availability Domain which is planned for Scheduled Update */ + @com.fasterxml.jackson.annotation.JsonProperty("adScheduledForUpdate") + private final String adScheduledForUpdate; + + /** + * The Availability Domain which is planned for Scheduled Update + * + * @return the value + */ + public String getAdScheduledForUpdate() { + return adScheduledForUpdate; + } + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestAvailableAdUpdate") + private final java.util.Date timeEarliestAvailableAdUpdate; + + /** + * The earliest date and time to which you can schedule an Autonomous Database availability + * domain update. + * + * @return the value + */ + public java.util.Date getTimeEarliestAvailableAdUpdate() { + return timeEarliestAvailableAdUpdate; + } + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLatestAvailableAdUpdate") + private final java.util.Date timeLatestAvailableAdUpdate; + + /** + * The latest date and time to which you can schedule an Autonomous Database availability domain + * update. + * + * @return the value + */ + public java.util.Date getTimeLatestAvailableAdUpdate() { + return timeLatestAvailableAdUpdate; + } + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private final java.util.Date timeScheduledAdUpdate; + + /** + * The date and time to which the Autonomous Database availability domain update is scheduled. + * + * @return the value + */ + public java.util.Date getTimeScheduledAdUpdate() { + return timeScheduledAdUpdate; + } + /** * A list of the source Autonomous AI Database's table space number(s) used to create this * partial clone from the backup. @@ -7503,6 +7665,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); + sb.append(", adScheduledForUpdate=").append(String.valueOf(this.adScheduledForUpdate)); + sb.append(", timeEarliestAvailableAdUpdate=") + .append(String.valueOf(this.timeEarliestAvailableAdUpdate)); + sb.append(", timeLatestAvailableAdUpdate=") + .append(String.valueOf(this.timeLatestAvailableAdUpdate)); + sb.append(", timeScheduledAdUpdate=").append(String.valueOf(this.timeScheduledAdUpdate)); sb.append(", cloneTableSpaceList=").append(String.valueOf(this.cloneTableSpaceList)); sb.append(", cloneType=").append(String.valueOf(this.cloneType)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); @@ -7716,6 +7884,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) + && java.util.Objects.equals(this.adScheduledForUpdate, other.adScheduledForUpdate) + && java.util.Objects.equals( + this.timeEarliestAvailableAdUpdate, other.timeEarliestAvailableAdUpdate) + && java.util.Objects.equals( + this.timeLatestAvailableAdUpdate, other.timeLatestAvailableAdUpdate) + && java.util.Objects.equals(this.timeScheduledAdUpdate, other.timeScheduledAdUpdate) && java.util.Objects.equals(this.cloneTableSpaceList, other.cloneTableSpaceList) && java.util.Objects.equals(this.cloneType, other.cloneType) && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) @@ -8217,6 +8391,26 @@ public int hashCode() { + (this.clusterPlacementGroupId == null ? 43 : this.clusterPlacementGroupId.hashCode()); + result = + (result * PRIME) + + (this.adScheduledForUpdate == null + ? 43 + : this.adScheduledForUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeEarliestAvailableAdUpdate == null + ? 43 + : this.timeEarliestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeLatestAvailableAdUpdate == null + ? 43 + : this.timeLatestAvailableAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledAdUpdate == null + ? 43 + : this.timeScheduledAdUpdate.hashCode()); result = (result * PRIME) + (this.cloneTableSpaceList == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 871b55a9a82..79f29b094cd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -67,6 +67,7 @@ public class CreateAutonomousDatabaseBase @java.beans.ConstructorProperties({ "subscriptionId", "compartmentId", + "availabilityDomain", "characterSet", "ncharacterSet", "dbName", @@ -124,6 +125,7 @@ public class CreateAutonomousDatabaseBase protected CreateAutonomousDatabaseBase( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -180,6 +182,7 @@ protected CreateAutonomousDatabaseBase( super(); this.subscriptionId = subscriptionId; this.compartmentId = compartmentId; + this.availabilityDomain = availabilityDomain; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; this.dbName = dbName; @@ -269,6 +272,19 @@ public String getCompartmentId() { return compartmentId; } + /** The Autonomous Database Serverless instance's availability domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The Autonomous Database Serverless instance's availability domain. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** * The character set for the Autonomous AI Database. The default is AL32UTF8. Allowed values for * an Autonomous AI Database Serverless instance as as returned by [List Autonomous AI Database @@ -1767,6 +1783,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", characterSet=").append(String.valueOf(this.characterSet)); sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); sb.append(", dbName=").append(String.valueOf(this.dbName)); @@ -1847,6 +1864,7 @@ public boolean equals(Object o) { CreateAutonomousDatabaseBase other = (CreateAutonomousDatabaseBase) o; return java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.characterSet, other.characterSet) && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) && java.util.Objects.equals(this.dbName, other.dbName) @@ -1928,6 +1946,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java index 78dfd1b526b..26437cbc9c3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java @@ -46,6 +46,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -573,6 +582,7 @@ public CreateAutonomousDatabaseCloneDetails build() { new CreateAutonomousDatabaseCloneDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -642,6 +652,9 @@ public Builder copy(CreateAutonomousDatabaseCloneDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -827,6 +840,7 @@ public Builder toBuilder() { public CreateAutonomousDatabaseCloneDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -885,6 +899,7 @@ public CreateAutonomousDatabaseCloneDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java index c6a94c96502..4998f86c56f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java @@ -45,6 +45,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -538,6 +547,7 @@ public CreateAutonomousDatabaseDetails build() { new CreateAutonomousDatabaseDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -605,6 +615,9 @@ public Builder copy(CreateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -784,6 +797,7 @@ public Builder toBuilder() { public CreateAutonomousDatabaseDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -840,6 +854,7 @@ public CreateAutonomousDatabaseDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java index 3abee71bf30..6e6065d1ea4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java @@ -46,6 +46,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -594,6 +603,7 @@ public CreateAutonomousDatabaseFromBackupDetails build() { new CreateAutonomousDatabaseFromBackupDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -664,6 +674,9 @@ public Builder copy(CreateAutonomousDatabaseFromBackupDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -852,6 +865,7 @@ public Builder toBuilder() { public CreateAutonomousDatabaseFromBackupDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -911,6 +925,7 @@ public CreateAutonomousDatabaseFromBackupDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java index a2477dd3f11..45497091b1f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java @@ -47,6 +47,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -628,6 +637,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails build() { new CreateAutonomousDatabaseFromBackupTimestampDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -700,6 +710,9 @@ public Builder copy(CreateAutonomousDatabaseFromBackupTimestampDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -895,6 +908,7 @@ public Builder toBuilder() { public CreateAutonomousDatabaseFromBackupTimestampDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -956,6 +970,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java index e48ee40a0e6..5d804f61ca8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java @@ -60,6 +60,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -574,6 +583,7 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails build() { new CreateCrossRegionAutonomousDatabaseDataGuardDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -642,6 +652,9 @@ public Builder copy(CreateCrossRegionAutonomousDatabaseDataGuardDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -824,6 +837,7 @@ public Builder toBuilder() { public CreateCrossRegionAutonomousDatabaseDataGuardDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -881,6 +895,7 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java index 5a02bc1a898..46e423f12e8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java @@ -58,6 +58,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -619,6 +628,7 @@ public CreateCrossRegionDisasterRecoveryDetails build() { new CreateCrossRegionDisasterRecoveryDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -689,6 +699,9 @@ public Builder copy(CreateCrossRegionDisasterRecoveryDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -877,6 +890,7 @@ public Builder toBuilder() { public CreateCrossRegionDisasterRecoveryDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -936,6 +950,7 @@ public CreateCrossRegionDisasterRecoveryDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java index db283626bf5..be86fcb2fa8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java @@ -57,6 +57,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -616,6 +625,7 @@ public CreateCrossTenancyDisasterRecoveryDetails build() { new CreateCrossTenancyDisasterRecoveryDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -686,6 +696,9 @@ public Builder copy(CreateCrossTenancyDisasterRecoveryDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -874,6 +887,7 @@ public Builder toBuilder() { public CreateCrossTenancyDisasterRecoveryDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -933,6 +947,7 @@ public CreateCrossTenancyDisasterRecoveryDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java index 488385c5c44..b0870a59388 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java @@ -46,6 +46,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -686,6 +695,7 @@ public CreateRefreshableAutonomousDatabaseCloneDetails build() { new CreateRefreshableAutonomousDatabaseCloneDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -760,6 +770,9 @@ public Builder copy(CreateRefreshableAutonomousDatabaseCloneDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -960,6 +973,7 @@ public Builder toBuilder() { public CreateRefreshableAutonomousDatabaseCloneDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -1023,6 +1037,7 @@ public CreateRefreshableAutonomousDatabaseCloneDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java index 79859ff36a5..84c7c40da42 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java @@ -45,6 +45,15 @@ public Builder compartmentId(String compartmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -557,6 +566,7 @@ public UndeleteAutonomousDatabaseDetails build() { new UndeleteAutonomousDatabaseDetails( this.subscriptionId, this.compartmentId, + this.availabilityDomain, this.characterSet, this.ncharacterSet, this.dbName, @@ -625,6 +635,9 @@ public Builder copy(UndeleteAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } @@ -807,6 +820,7 @@ public Builder toBuilder() { public UndeleteAutonomousDatabaseDetails( String subscriptionId, String compartmentId, + String availabilityDomain, String characterSet, String ncharacterSet, String dbName, @@ -864,6 +878,7 @@ public UndeleteAutonomousDatabaseDetails( super( subscriptionId, compartmentId, + availabilityDomain, characterSet, ncharacterSet, dbName, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index fdb513cc9f0..0f0152722ed 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -45,6 +45,10 @@ public final class UpdateAutonomousDatabaseDetails "dataStorageSizeInGBs", "displayName", "isFreeTier", + "availabilityDomain", + "timeScheduledAdUpdate", + "isDisableAdUpdateSchedule", + "isScheduleAdUpdateToEarliest", "adminPassword", "dbName", "freeformTags", @@ -109,6 +113,10 @@ public UpdateAutonomousDatabaseDetails( Integer dataStorageSizeInGBs, String displayName, Boolean isFreeTier, + String availabilityDomain, + java.util.Date timeScheduledAdUpdate, + Boolean isDisableAdUpdateSchedule, + Boolean isScheduleAdUpdateToEarliest, String adminPassword, String dbName, java.util.Map freeformTags, @@ -172,6 +180,10 @@ public UpdateAutonomousDatabaseDetails( this.dataStorageSizeInGBs = dataStorageSizeInGBs; this.displayName = displayName; this.isFreeTier = isFreeTier; + this.availabilityDomain = availabilityDomain; + this.timeScheduledAdUpdate = timeScheduledAdUpdate; + this.isDisableAdUpdateSchedule = isDisableAdUpdateSchedule; + this.isScheduleAdUpdateToEarliest = isScheduleAdUpdateToEarliest; this.adminPassword = adminPassword; this.dbName = dbName; this.freeformTags = freeformTags; @@ -608,6 +620,72 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** The Autonomous Database Serverless instance's availability domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The Autonomous Database Serverless instance's availability domain. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** The date and time when the Autonomous Database availability domain is to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private java.util.Date timeScheduledAdUpdate; + + /** + * The date and time when the Autonomous Database availability domain is to be updated. + * + * @param timeScheduledAdUpdate the value to set + * @return this builder + */ + public Builder timeScheduledAdUpdate(java.util.Date timeScheduledAdUpdate) { + this.timeScheduledAdUpdate = timeScheduledAdUpdate; + this.__explicitlySet__.add("timeScheduledAdUpdate"); + return this; + } + /** + * True, if you want to disable Autonomous Database availability domain scheduled update. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDisableAdUpdateSchedule") + private Boolean isDisableAdUpdateSchedule; + + /** + * True, if you want to disable Autonomous Database availability domain scheduled update. + * + * @param isDisableAdUpdateSchedule the value to set + * @return this builder + */ + public Builder isDisableAdUpdateSchedule(Boolean isDisableAdUpdateSchedule) { + this.isDisableAdUpdateSchedule = isDisableAdUpdateSchedule; + this.__explicitlySet__.add("isDisableAdUpdateSchedule"); + return this; + } + /** + * True, if you want to schedule Autonomous Database availability domain update to the + * earliest available time. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isScheduleAdUpdateToEarliest") + private Boolean isScheduleAdUpdateToEarliest; + + /** + * True, if you want to schedule Autonomous Database availability domain update to the + * earliest available time. + * + * @param isScheduleAdUpdateToEarliest the value to set + * @return this builder + */ + public Builder isScheduleAdUpdateToEarliest(Boolean isScheduleAdUpdateToEarliest) { + this.isScheduleAdUpdateToEarliest = isScheduleAdUpdateToEarliest; + this.__explicitlySet__.add("isScheduleAdUpdateToEarliest"); + return this; + } /** * The password must be between 12 and 30 characters long, and must contain at least 1 * uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote @@ -1994,6 +2072,10 @@ public UpdateAutonomousDatabaseDetails build() { this.dataStorageSizeInGBs, this.displayName, this.isFreeTier, + this.availabilityDomain, + this.timeScheduledAdUpdate, + this.isDisableAdUpdateSchedule, + this.isScheduleAdUpdateToEarliest, this.adminPassword, this.dbName, this.freeformTags, @@ -2091,6 +2173,18 @@ public Builder copy(UpdateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("timeScheduledAdUpdate")) { + this.timeScheduledAdUpdate(model.getTimeScheduledAdUpdate()); + } + if (model.wasPropertyExplicitlySet("isDisableAdUpdateSchedule")) { + this.isDisableAdUpdateSchedule(model.getIsDisableAdUpdateSchedule()); + } + if (model.wasPropertyExplicitlySet("isScheduleAdUpdateToEarliest")) { + this.isScheduleAdUpdateToEarliest(model.getIsScheduleAdUpdateToEarliest()); + } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } @@ -2638,6 +2732,62 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** The Autonomous Database Serverless instance's availability domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The Autonomous Database Serverless instance's availability domain. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** The date and time when the Autonomous Database availability domain is to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledAdUpdate") + private final java.util.Date timeScheduledAdUpdate; + + /** + * The date and time when the Autonomous Database availability domain is to be updated. + * + * @return the value + */ + public java.util.Date getTimeScheduledAdUpdate() { + return timeScheduledAdUpdate; + } + + /** True, if you want to disable Autonomous Database availability domain scheduled update. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDisableAdUpdateSchedule") + private final Boolean isDisableAdUpdateSchedule; + + /** + * True, if you want to disable Autonomous Database availability domain scheduled update. + * + * @return the value + */ + public Boolean getIsDisableAdUpdateSchedule() { + return isDisableAdUpdateSchedule; + } + + /** + * True, if you want to schedule Autonomous Database availability domain update to the earliest + * available time. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isScheduleAdUpdateToEarliest") + private final Boolean isScheduleAdUpdateToEarliest; + + /** + * True, if you want to schedule Autonomous Database availability domain update to the earliest + * available time. + * + * @return the value + */ + public Boolean getIsScheduleAdUpdateToEarliest() { + return isScheduleAdUpdateToEarliest; + } + /** * The password must be between 12 and 30 characters long, and must contain at least 1 * uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol @@ -4151,6 +4301,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", timeScheduledAdUpdate=").append(String.valueOf(this.timeScheduledAdUpdate)); + sb.append(", isDisableAdUpdateSchedule=") + .append(String.valueOf(this.isDisableAdUpdateSchedule)); + sb.append(", isScheduleAdUpdateToEarliest=") + .append(String.valueOf(this.isScheduleAdUpdateToEarliest)); sb.append(", adminPassword=").append(String.valueOf(this.adminPassword)); sb.append(", dbName=").append(String.valueOf(this.dbName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -4245,6 +4401,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.timeScheduledAdUpdate, other.timeScheduledAdUpdate) + && java.util.Objects.equals( + this.isDisableAdUpdateSchedule, other.isDisableAdUpdateSchedule) + && java.util.Objects.equals( + this.isScheduleAdUpdateToEarliest, other.isScheduleAdUpdateToEarliest) && java.util.Objects.equals(this.adminPassword, other.adminPassword) && java.util.Objects.equals(this.dbName, other.dbName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -4358,6 +4520,26 @@ public int hashCode() { : this.dataStorageSizeInGBs.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledAdUpdate == null + ? 43 + : this.timeScheduledAdUpdate.hashCode()); + result = + (result * PRIME) + + (this.isDisableAdUpdateSchedule == null + ? 43 + : this.isDisableAdUpdateSchedule.hashCode()); + result = + (result * PRIME) + + (this.isScheduleAdUpdateToEarliest == null + ? 43 + : this.isScheduleAdUpdateToEarliest.hashCode()); result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 15a0100420c..2a0bdfc670d 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index ec0bd15b5a6..f70b6f956ea 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 462821b79e2..c956201621b 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 27af9a511a2..126f616127a 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index fa8957b72de..9f49315d6bf 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index f19a4ccc4e6..a5e29e2fcb5 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 0fec081893a..63a31502b1a 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 36ad90a4500..a02dfaeabeb 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index c96dd8917ad..dbabc1d5947 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index dea297a20f9..9701421f913 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 14dea436311..840cb30c63c 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 83e0fea9691..a2117badb17 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index 310958203a5..9cb592ad553 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 84540bb57e0..ff5fa7803c8 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml new file mode 100644 index 00000000000..188c0176178 --- /dev/null +++ b/bmc-ddfs/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.94.1 + ../pom.xml + + oci-java-sdk-ddfs + Oracle Cloud Infrastructure SDK - Ddfs + This project contains the SDK used for Oracle Cloud Infrastructure Ddfs + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.94.1 + + + \ No newline at end of file diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/Instance.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/Instance.java new file mode 100644 index 00000000000..17a45238613 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/Instance.java @@ -0,0 +1,255 @@ +/** + * 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.ddfs; + +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; + +/** + * Use the Device Data FHIR Service API to manage DDFS instances. This service client uses + * CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit + * breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public interface Instance extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Cancels a work request. + * + * @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 CancelWorkRequest + * API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + + /** + * Moves an Instance into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

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

Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Gets a list of Instances. + * + * @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 ListInstances API. + */ + ListInstancesResponse listInstances(ListInstancesRequest request); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use UpdateInstance API. + */ + UpdateInstanceResponse updateInstance(UpdateInstanceRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + InstanceWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + InstancePaginators getPaginators(); +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsync.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsync.java new file mode 100644 index 00000000000..ddf46a33c96 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsync.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.ddfs; + +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; + +/** Use the Device Data FHIR Service API to manage DDFS instances. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public interface InstanceAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Cancels a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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 cancelWorkRequest( + CancelWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler); + + /** + * Moves an Instance into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future changeInstanceCompartment( + ChangeInstanceCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeInstanceCompartmentRequest, ChangeInstanceCompartmentResponse> + handler); + + /** + * Creates an Instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createInstance( + CreateInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes an Instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteInstance( + DeleteInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets information about an Instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getInstance( + GetInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets the details of a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a list of Instances. + * + * @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 listInstances( + ListInstancesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates an Instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateInstance( + UpdateInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java new file mode 100644 index 00000000000..a91080cb914 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java @@ -0,0 +1,598 @@ +/** + * 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.ddfs; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Instance service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class InstanceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements InstanceAsync { + /** Service instance for Instance. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(InstanceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://ddfs.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InstanceAsyncClient.class); + + InstanceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "ddfs"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public InstanceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new InstanceAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("Instance", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future changeInstanceCompartment( + ChangeInstanceCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeInstanceCompartmentRequest, ChangeInstanceCompartmentResponse> + handler) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + Objects.requireNonNull( + request.getChangeInstanceCompartmentDetails(), + "changeInstanceCompartmentDetails is required"); + + return clientCall(request, ChangeInstanceCompartmentResponse::builder) + .logger(LOG, "changeInstanceCompartment") + .serviceDetails("Instance", "ChangeInstanceCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeInstanceCompartmentRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeInstanceCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeInstanceCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createInstance( + CreateInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateInstanceRequest, CreateInstanceResponse> + handler) { + Objects.requireNonNull( + request.getCreateInstanceDetails(), "createInstanceDetails is required"); + + return clientCall(request, CreateInstanceResponse::builder) + .logger(LOG, "createInstance") + .serviceDetails("Instance", "CreateInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.ddfs.model.Instance.class, + CreateInstanceResponse.Builder::instance) + .handleResponseHeaderString("location", CreateInstanceResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateInstanceResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateInstanceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteInstance( + DeleteInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteInstanceRequest, DeleteInstanceResponse> + handler) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + + return clientCall(request, DeleteInstanceResponse::builder) + .logger(LOG, "deleteInstance") + .serviceDetails("Instance", "DeleteInstance", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getInstance( + GetInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + + return clientCall(request, GetInstanceResponse::builder) + .logger(LOG, "getInstance") + .serviceDetails("Instance", "GetInstance", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.Instance.class, + GetInstanceResponse.Builder::instance) + .handleResponseHeaderString("etag", GetInstanceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Instance", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listInstances( + ListInstancesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListInstancesResponse::builder) + .logger(LOG, "listInstances") + .serviceDetails("Instance", "ListInstances", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInstancesRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.InstanceCollection.class, + ListInstancesResponse.Builder::instanceCollection) + .handleResponseHeaderString( + "opc-request-id", ListInstancesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInstancesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Instance", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("Instance", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Instance", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateInstance( + UpdateInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateInstanceRequest, UpdateInstanceResponse> + handler) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + Objects.requireNonNull( + request.getUpdateInstanceDetails(), "updateInstanceDetails is required"); + + return clientCall(request, UpdateInstanceResponse::builder) + .logger(LOG, "updateInstance") + .serviceDetails("Instance", "UpdateInstance", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdateInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java new file mode 100644 index 00000000000..50e0e1e4061 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java @@ -0,0 +1,652 @@ +/** + * 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.ddfs; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class InstanceClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Instance { + /** Service instance for Instance. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(InstanceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://ddfs.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InstanceClient.class); + + private final InstanceWaiters waiters; + + private final InstancePaginators paginators; + + InstanceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Instance-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new InstanceWaiters(executorService, this); + + this.paginators = new InstancePaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "ddfs"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public InstanceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new InstanceClient(this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("Instance", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeInstanceCompartmentResponse changeInstanceCompartment( + ChangeInstanceCompartmentRequest request) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + Objects.requireNonNull( + request.getChangeInstanceCompartmentDetails(), + "changeInstanceCompartmentDetails is required"); + + return clientCall(request, ChangeInstanceCompartmentResponse::builder) + .logger(LOG, "changeInstanceCompartment") + .serviceDetails("Instance", "ChangeInstanceCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeInstanceCompartmentRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeInstanceCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeInstanceCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateInstanceResponse createInstance(CreateInstanceRequest request) { + Objects.requireNonNull( + request.getCreateInstanceDetails(), "createInstanceDetails is required"); + + return clientCall(request, CreateInstanceResponse::builder) + .logger(LOG, "createInstance") + .serviceDetails("Instance", "CreateInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.ddfs.model.Instance.class, + CreateInstanceResponse.Builder::instance) + .handleResponseHeaderString("location", CreateInstanceResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateInstanceResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateInstanceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteInstanceResponse deleteInstance(DeleteInstanceRequest request) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + + return clientCall(request, DeleteInstanceResponse::builder) + .logger(LOG, "deleteInstance") + .serviceDetails("Instance", "DeleteInstance", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetInstanceResponse getInstance(GetInstanceRequest request) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + + return clientCall(request, GetInstanceResponse::builder) + .logger(LOG, "getInstance") + .serviceDetails("Instance", "GetInstance", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.Instance.class, + GetInstanceResponse.Builder::instance) + .handleResponseHeaderString("etag", GetInstanceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Instance", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListInstancesResponse listInstances(ListInstancesRequest request) { + + return clientCall(request, ListInstancesResponse::builder) + .logger(LOG, "listInstances") + .serviceDetails("Instance", "ListInstances", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInstancesRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.InstanceCollection.class, + ListInstancesResponse.Builder::instanceCollection) + .handleResponseHeaderString( + "opc-request-id", ListInstancesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInstancesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Instance", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("Instance", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Instance", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260831") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) { + + Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + Objects.requireNonNull( + request.getUpdateInstanceDetails(), "updateInstanceDetails is required"); + + return clientCall(request, UpdateInstanceResponse::builder) + .logger(LOG, "updateInstance") + .serviceDetails("Instance", "UpdateInstance", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInstanceRequest::builder) + .basePath("/20260831") + .appendPathParam("instances") + .appendPathParam(request.getInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdateInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public InstanceWaiters getWaiters() { + return waiters; + } + + @Override + public InstancePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public InstanceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstancePaginators.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstancePaginators.java new file mode 100644 index 00000000000..033905d7773 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstancePaginators.java @@ -0,0 +1,513 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs; + +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Instance where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

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

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class InstancePaginators { + private final Instance client; + + public InstancePaginators(Instance client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listInstances + * 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 listInstancesResponseIterator( + final ListInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInstancesRequest.Builder, ListInstancesRequest, ListInstancesResponse>( + new java.util.function.Supplier() { + @Override + public ListInstancesRequest.Builder get() { + return ListInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInstancesRequest.Builder>, + ListInstancesRequest>() { + @Override + public ListInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInstancesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListInstancesResponse apply(ListInstancesRequest request) { + return client.listInstances(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.ddfs.model.InstanceSummary} objects contained in responses from the + * listInstances 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.ddfs.model.InstanceSummary} objects contained in responses received from + * the service. + */ + public Iterable listInstancesRecordIterator( + final ListInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInstancesRequest.Builder, + ListInstancesRequest, + ListInstancesResponse, + com.oracle.bmc.ddfs.model.InstanceSummary>( + new java.util.function.Supplier() { + @Override + public ListInstancesRequest.Builder get() { + return ListInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInstancesRequest.Builder>, + ListInstancesRequest>() { + @Override + public ListInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInstancesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListInstancesResponse apply(ListInstancesRequest request) { + return client.listInstances(request); + } + }, + new java.util.function.Function< + ListInstancesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListInstancesResponse response) { + return response.getInstanceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestError} objects contained in responses from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestError} objects contained in responses received from + * the service. + */ + public Iterable listWorkRequestErrorsRecordIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, + com.oracle.bmc.ddfs.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestLogEntry} objects contained in responses from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestLogEntry} objects contained in responses received + * from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.ddfs.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestSummary} objects contained in responses from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.ddfs.model.WorkRequestSummary} objects contained in responses received + * from the service. + */ + public Iterable listWorkRequestsRecordIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, + ListWorkRequestsRequest, + ListWorkRequestsResponse, + com.oracle.bmc.ddfs.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceWaiters.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceWaiters.java new file mode 100644 index 00000000000..86b60fa0b70 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceWaiters.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs; + +import com.oracle.bmc.ddfs.requests.*; +import com.oracle.bmc.ddfs.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Instance. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class InstanceWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Instance client; + + public InstanceWaiters(java.util.concurrent.ExecutorService executorService, Instance client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forInstance( + GetInstanceRequest request, + com.oracle.bmc.ddfs.model.Instance.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 forInstance( + 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 forInstance( + GetInstanceRequest request, + com.oracle.bmc.ddfs.model.Instance.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 forInstance( + 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 forInstance( + GetInstanceRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.ddfs.model.Instance.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 forInstance( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Instance. + private com.oracle.bmc.waiter.Waiter forInstance( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetInstanceRequest request, + final com.oracle.bmc.ddfs.model.Instance.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetInstanceResponse apply(GetInstanceRequest request) { + return client.getInstance(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetInstanceResponse response) { + return targetStatesSet.contains( + response.getInstance().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.ddfs.model.Instance.LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ActionType.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ActionType.java new file mode 100644 index 00000000000..e272519cd9f --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ActionType.java @@ -0,0 +1,56 @@ +/** + * 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.ddfs.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ChangeInstanceCompartmentDetails.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ChangeInstanceCompartmentDetails.java new file mode 100644 index 00000000000..90c9a5f5727 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/ChangeInstanceCompartmentDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * The configuration details for the move operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeInstanceCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeInstanceCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeInstanceCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the Instance to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the Instance to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeInstanceCompartmentDetails build() { + ChangeInstanceCompartmentDetails model = + new ChangeInstanceCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeInstanceCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the Instance to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the Instance to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeInstanceCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInstanceCompartmentDetails)) { + return false; + } + + ChangeInstanceCompartmentDetails other = (ChangeInstanceCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/CreateInstanceDetails.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/CreateInstanceDetails.java new file mode 100644 index 00000000000..b853d883d66 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/CreateInstanceDetails.java @@ -0,0 +1,366 @@ +/** + * 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.ddfs.model; + +/** + * The data to create an Instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "idcsUrl", + "compartmentId", + "freeformTags", + "definedTags" + }) + public CreateInstanceDetails( + String displayName, + String idcsUrl, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.idcsUrl = idcsUrl; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @param idcsUrl the value to set + * @return this builder + */ + public Builder idcsUrl(String idcsUrl) { + this.idcsUrl = idcsUrl; + this.__explicitlySet__.add("idcsUrl"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to create the Instance in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to create the Instance in. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateInstanceDetails build() { + CreateInstanceDetails model = + new CreateInstanceDetails( + this.displayName, + this.idcsUrl, + this.compartmentId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateInstanceDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("idcsUrl")) { + this.idcsUrl(model.getIdcsUrl()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private final String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @return the value + */ + public String getIdcsUrl() { + return idcsUrl; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to create the Instance in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to create the Instance in. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", idcsUrl=").append(String.valueOf(this.idcsUrl)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInstanceDetails)) { + return false; + } + + CreateInstanceDetails other = (CreateInstanceDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.idcsUrl, other.idcsUrl) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.idcsUrl == null ? 43 : this.idcsUrl.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/Instance.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/Instance.java new file mode 100644 index 00000000000..5a8eb050b5a --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/Instance.java @@ -0,0 +1,800 @@ +/** + * 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.ddfs.model; + +/** + * A Device Data FHIR Service instance. + * + *

To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, talk to an administrator. If you're an administrator who needs to write policies to + * give users access, see [Getting Started with + * Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Instance.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Instance extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "idcsUrl", + "publicIp", + "fhirServiceEndpoint", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public Instance( + String id, + String displayName, + String compartmentId, + String idcsUrl, + String publicIp, + String fhirServiceEndpoint, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.idcsUrl = idcsUrl; + this.publicIp = publicIp; + this.fhirServiceEndpoint = fhirServiceEndpoint; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @param idcsUrl the value to set + * @return this builder + */ + public Builder idcsUrl(String idcsUrl) { + this.idcsUrl = idcsUrl; + this.__explicitlySet__.add("idcsUrl"); + return this; + } + /** The public IP address for the instance's FHIR service endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicIp") + private String publicIp; + + /** + * The public IP address for the instance's FHIR service endpoint. + * + * @param publicIp the value to set + * @return this builder + */ + public Builder publicIp(String publicIp) { + this.publicIp = publicIp; + this.__explicitlySet__.add("publicIp"); + return this; + } + /** + * The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) + * service. + * + *

Example: {@code https://example.ddfs.oraclecloud.com/api/fhir} + */ + @com.fasterxml.jackson.annotation.JsonProperty("fhirServiceEndpoint") + private String fhirServiceEndpoint; + + /** + * The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) + * service. + * + *

Example: {@code https://example.ddfs.oraclecloud.com/api/fhir} + * + * @param fhirServiceEndpoint the value to set + * @return this builder + */ + public Builder fhirServiceEndpoint(String fhirServiceEndpoint) { + this.fhirServiceEndpoint = fhirServiceEndpoint; + this.__explicitlySet__.add("fhirServiceEndpoint"); + return this; + } + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@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; + } + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@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; + } + /** The current state of the Instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Instance. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message that describes the current state of the Instance in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message that describes the current state of the Instance in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Instance build() { + Instance model = + new Instance( + this.id, + this.displayName, + this.compartmentId, + this.idcsUrl, + this.publicIp, + this.fhirServiceEndpoint, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Instance model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("idcsUrl")) { + this.idcsUrl(model.getIdcsUrl()); + } + if (model.wasPropertyExplicitlySet("publicIp")) { + this.publicIp(model.getPublicIp()); + } + if (model.wasPropertyExplicitlySet("fhirServiceEndpoint")) { + this.fhirServiceEndpoint(model.getFhirServiceEndpoint()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private final String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @return the value + */ + public String getIdcsUrl() { + return idcsUrl; + } + + /** The public IP address for the instance's FHIR service endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicIp") + private final String publicIp; + + /** + * The public IP address for the instance's FHIR service endpoint. + * + * @return the value + */ + public String getPublicIp() { + return publicIp; + } + + /** + * The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) + * service. + * + *

Example: {@code https://example.ddfs.oraclecloud.com/api/fhir} + */ + @com.fasterxml.jackson.annotation.JsonProperty("fhirServiceEndpoint") + private final String fhirServiceEndpoint; + + /** + * The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) + * service. + * + *

Example: {@code https://example.ddfs.oraclecloud.com/api/fhir} + * + * @return the value + */ + public String getFhirServiceEndpoint() { + return fhirServiceEndpoint; + } + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the Instance. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Instance. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message that describes the current state of the Instance in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message that describes the current state of the Instance in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Instance("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", idcsUrl=").append(String.valueOf(this.idcsUrl)); + sb.append(", publicIp=").append(String.valueOf(this.publicIp)); + sb.append(", fhirServiceEndpoint=").append(String.valueOf(this.fhirServiceEndpoint)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Instance)) { + return false; + } + + Instance other = (Instance) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.idcsUrl, other.idcsUrl) + && java.util.Objects.equals(this.publicIp, other.publicIp) + && java.util.Objects.equals(this.fhirServiceEndpoint, other.fhirServiceEndpoint) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.idcsUrl == null ? 43 : this.idcsUrl.hashCode()); + result = (result * PRIME) + (this.publicIp == null ? 43 : this.publicIp.hashCode()); + result = + (result * PRIME) + + (this.fhirServiceEndpoint == null + ? 43 + : this.fhirServiceEndpoint.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceCollection.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceCollection.java new file mode 100644 index 00000000000..5f7aa74a0c9 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * Results of an instance search. Contains both InstanceSummary items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InstanceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InstanceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of instances. + * + * @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 InstanceCollection build() { + InstanceCollection model = new InstanceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of instances. + * + * @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("InstanceCollection("); + 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 InstanceCollection)) { + return false; + } + + InstanceCollection other = (InstanceCollection) 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-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceSummary.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceSummary.java new file mode 100644 index 00000000000..68c22757165 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/InstanceSummary.java @@ -0,0 +1,649 @@ +/** + * 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.ddfs.model; + +/** + * Summary information about an Instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InstanceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InstanceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "idcsUrl", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public InstanceSummary( + String id, + String displayName, + String compartmentId, + String idcsUrl, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Instance.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.idcsUrl = idcsUrl; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @param idcsUrl the value to set + * @return this builder + */ + public Builder idcsUrl(String idcsUrl) { + this.idcsUrl = idcsUrl; + this.__explicitlySet__.add("idcsUrl"); + return this; + } + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@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; + } + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@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; + } + /** The current state of the Instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Instance.LifecycleState lifecycleState; + + /** + * The current state of the Instance. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Instance.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message that describes the current state of the Instance in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message that describes the current state of the Instance in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceSummary build() { + InstanceSummary model = + new InstanceSummary( + this.id, + this.displayName, + this.compartmentId, + this.idcsUrl, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("idcsUrl")) { + this.idcsUrl(model.getIdcsUrl()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("idcsUrl") + private final String idcsUrl; + + /** + * The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the + * instance. Use the IDCS tenant URL from your identity domain configuration. + * + *

Example: {@code https://idcs-1234567890.identity.oraclecloud.com} + * + * @return the value + */ + public String getIdcsUrl() { + return idcsUrl; + } + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Instance was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Instance was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the Instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Instance.LifecycleState lifecycleState; + + /** + * The current state of the Instance. + * + * @return the value + */ + public Instance.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message that describes the current state of the Instance in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message that describes the current state of the Instance in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

Example: {@code {"orcl-cloud": {"example-key": "example-value"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", idcsUrl=").append(String.valueOf(this.idcsUrl)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceSummary)) { + return false; + } + + InstanceSummary other = (InstanceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.idcsUrl, other.idcsUrl) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.idcsUrl == null ? 43 : this.idcsUrl.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationStatus.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationStatus.java new file mode 100644 index 00000000000..f0c2149e793 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationStatus.java @@ -0,0 +1,59 @@ +/** + * 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.ddfs.model; + +/** The status of the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Cancelling("CANCELLING"), + Cancelled("CANCELLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationType.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationType.java new file mode 100644 index 00000000000..b39fdfa0a9e --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/OperationType.java @@ -0,0 +1,55 @@ +/** + * 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.ddfs.model; + +/** The asynchronous operation tracked by the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateInstance("CREATE_INSTANCE"), + UpdateInstance("UPDATE_INSTANCE"), + DeleteInstance("DELETE_INSTANCE"), + MoveInstance("MOVE_INSTANCE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/SortOrder.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/SortOrder.java new file mode 100644 index 00000000000..3d581b81d6c --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/SortOrder.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code + * displayName} sort order is case sensitive. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/UpdateInstanceDetails.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/UpdateInstanceDetails.java new file mode 100644 index 00000000000..70e63759a80 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/UpdateInstanceDetails.java @@ -0,0 +1,258 @@ +/** + * 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.ddfs.model; + +/** + * The data to update an Instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + public UpdateInstanceDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateInstanceDetails build() { + UpdateInstanceDetails model = + new UpdateInstanceDetails( + this.displayName, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateInstanceDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInstanceDetails)) { + return false; + } + + UpdateInstanceDetails other = (UpdateInstanceDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequest.java new file mode 100644 index 00000000000..4106b5332a9 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequest.java @@ -0,0 +1,544 @@ +/** + * 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.ddfs.model; + +/** + * An asynchronous work request. Work requests help you monitor long-running operations. When you + * start a long-running operation, the service creates a work request. A work request is an activity + * log that lets you track each step in the operation's progress. Each work request has an OCID that + * lets you interact with it programmatically and use it for automation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by the work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by the work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestError.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestError.java new file mode 100644 index 00000000000..ab6186c74fd --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestError.java @@ -0,0 +1,219 @@ +/** + * 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.ddfs.model; + +/** + * An error encountered while performing an operation that is tracked by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** A human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable error message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable error message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestErrorCollection.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..5b6e1358778 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestErrorCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * A list of work request errors. Can contain both errors and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request errors. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request errors. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntry.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..7dc8eb9b71f --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntry.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * A log message from performing an operation that is tracked by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntryCollection.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..ccbd37eadab --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestLogEntryCollection.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.ddfs.model; + +/** + * A list of work request logs. Can contain both logs and other information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResource.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResource.java new file mode 100644 index 00000000000..c485f6dfe11 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResource.java @@ -0,0 +1,315 @@ +/** + * 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.ddfs.model; + +/** + * A resource created or operated on by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource type that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type that the work request affects. + * + * @param entityType the value to set + * @return this builder + */ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** The URI path that you can use for a GET request to access the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The resource type that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type that the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that you can use for a GET request to access the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResourceMetadataKey.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..2061ef649dc --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestResourceMetadataKey.java @@ -0,0 +1,52 @@ +/** + * 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.ddfs.model; + +/** Possible metadata keys for work request resource metadata. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + IsDryRun("IS_DRY_RUN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummary.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummary.java new file mode 100644 index 00000000000..3aba31328da --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummary.java @@ -0,0 +1,543 @@ +/** + * 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.ddfs.model; + +/** + * Summary information about an asynchronous work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummaryCollection.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..ffdee01a4e2 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/model/WorkRequestSummaryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.model; + +/** + * A list of work requests. Can contain both work requests and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work requests. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work requests. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CancelWorkRequestRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..8e4eb3aa40b --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CancelWorkRequestRequest.java @@ -0,0 +1,263 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class CancelWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelWorkRequestRequest, 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 + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique 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; + } + + /** + * 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(CancelWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelWorkRequestRequest 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 CancelWorkRequestRequest + */ + public CancelWorkRequestRequest build() { + CancelWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelWorkRequestRequest 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 CancelWorkRequestRequest + */ + public CancelWorkRequestRequest buildWithoutInvocationCallback() { + CancelWorkRequestRequest request = new CancelWorkRequestRequest(); + request.workRequestId = workRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelWorkRequestRequest(workRequestId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestRequest)) { + return false; + } + + CancelWorkRequestRequest other = (CancelWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ChangeInstanceCompartmentRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ChangeInstanceCompartmentRequest.java new file mode 100644 index 00000000000..bb0c5f5e69e --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ChangeInstanceCompartmentRequest.java @@ -0,0 +1,328 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use + * ChangeInstanceCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ChangeInstanceCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String instanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + public String getInstanceId() { + return instanceId; + } + /** The compartment move details. */ + private com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails + changeInstanceCompartmentDetails; + + /** The compartment move details. */ + public com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails + getChangeInstanceCompartmentDetails() { + return changeInstanceCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails getBody$() { + return changeInstanceCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeInstanceCompartmentRequest, + com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails> { + 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 + * Instance. + */ + private String instanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param instanceId the value to set + * @return this builder instance + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** The compartment move details. */ + private com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails + changeInstanceCompartmentDetails = null; + + /** + * The compartment move details. + * + * @param changeInstanceCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeInstanceCompartmentDetails( + com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails + changeInstanceCompartmentDetails) { + this.changeInstanceCompartmentDetails = changeInstanceCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique 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; + } + + /** + * 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(ChangeInstanceCompartmentRequest o) { + instanceId(o.getInstanceId()); + changeInstanceCompartmentDetails(o.getChangeInstanceCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeInstanceCompartmentRequest 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 ChangeInstanceCompartmentRequest + */ + public ChangeInstanceCompartmentRequest build() { + ChangeInstanceCompartmentRequest 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.ddfs.model.ChangeInstanceCompartmentDetails body) { + changeInstanceCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeInstanceCompartmentRequest 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 ChangeInstanceCompartmentRequest + */ + public ChangeInstanceCompartmentRequest buildWithoutInvocationCallback() { + ChangeInstanceCompartmentRequest request = new ChangeInstanceCompartmentRequest(); + request.instanceId = instanceId; + request.changeInstanceCompartmentDetails = changeInstanceCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeInstanceCompartmentRequest(instanceId, changeInstanceCompartmentDetails, + // ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .instanceId(instanceId) + .changeInstanceCompartmentDetails(changeInstanceCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",instanceId=").append(String.valueOf(this.instanceId)); + sb.append(",changeInstanceCompartmentDetails=") + .append(String.valueOf(this.changeInstanceCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInstanceCompartmentRequest)) { + return false; + } + + ChangeInstanceCompartmentRequest other = (ChangeInstanceCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals( + this.changeInstanceCompartmentDetails, + other.changeInstanceCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.changeInstanceCompartmentDetails == null + ? 43 + : this.changeInstanceCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CreateInstanceRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CreateInstanceRequest.java new file mode 100644 index 00000000000..5a27a875d28 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/CreateInstanceRequest.java @@ -0,0 +1,287 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use CreateInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class CreateInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ddfs.model.CreateInstanceDetails> { + + /** Details for the new Instance. */ + private com.oracle.bmc.ddfs.model.CreateInstanceDetails createInstanceDetails; + + /** Details for the new Instance. */ + public com.oracle.bmc.ddfs.model.CreateInstanceDetails getCreateInstanceDetails() { + return createInstanceDetails; + } + /** + * 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.ddfs.model.CreateInstanceDetails getBody$() { + return createInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateInstanceRequest, com.oracle.bmc.ddfs.model.CreateInstanceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Instance. */ + private com.oracle.bmc.ddfs.model.CreateInstanceDetails createInstanceDetails = null; + + /** + * Details for the new Instance. + * + * @param createInstanceDetails the value to set + * @return this builder instance + */ + public Builder createInstanceDetails( + com.oracle.bmc.ddfs.model.CreateInstanceDetails createInstanceDetails) { + this.createInstanceDetails = createInstanceDetails; + 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; + } + + /** + * 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(CreateInstanceRequest o) { + createInstanceDetails(o.getCreateInstanceDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateInstanceRequest 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 CreateInstanceRequest + */ + public CreateInstanceRequest build() { + CreateInstanceRequest 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.ddfs.model.CreateInstanceDetails body) { + createInstanceDetails(body); + return this; + } + + /** + * Build the instance of CreateInstanceRequest 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 CreateInstanceRequest + */ + public CreateInstanceRequest buildWithoutInvocationCallback() { + CreateInstanceRequest request = new CreateInstanceRequest(); + request.createInstanceDetails = createInstanceDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateInstanceRequest(createInstanceDetails, 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() + .createInstanceDetails(createInstanceDetails) + .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(",createInstanceDetails=").append(String.valueOf(this.createInstanceDetails)); + 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 CreateInstanceRequest)) { + return false; + } + + CreateInstanceRequest other = (CreateInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createInstanceDetails, other.createInstanceDetails) + && 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.createInstanceDetails == null + ? 43 + : this.createInstanceDetails.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-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/DeleteInstanceRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/DeleteInstanceRequest.java new file mode 100644 index 00000000000..57094b1f2f6 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/DeleteInstanceRequest.java @@ -0,0 +1,258 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use DeleteInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class DeleteInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String instanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + public String getInstanceId() { + return instanceId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteInstanceRequest, 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 + * Instance. + */ + private String instanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param instanceId the value to set + * @return this builder instance + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique 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; + } + + /** + * 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(DeleteInstanceRequest o) { + instanceId(o.getInstanceId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteInstanceRequest 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 DeleteInstanceRequest + */ + public DeleteInstanceRequest build() { + DeleteInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteInstanceRequest 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 DeleteInstanceRequest + */ + public DeleteInstanceRequest buildWithoutInvocationCallback() { + DeleteInstanceRequest request = new DeleteInstanceRequest(); + request.instanceId = instanceId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteInstanceRequest(instanceId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().instanceId(instanceId).ifMatch(ifMatch).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",instanceId=").append(String.valueOf(this.instanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteInstanceRequest)) { + return false; + } + + DeleteInstanceRequest other = (DeleteInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetInstanceRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetInstanceRequest.java new file mode 100644 index 00000000000..7f968d11df5 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetInstanceRequest.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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use GetInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class GetInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String instanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + public String getInstanceId() { + return instanceId; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetInstanceRequest, 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 + * Instance. + */ + private String instanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param instanceId the value to set + * @return this builder instance + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + 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; + } + + /** + * 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(GetInstanceRequest o) { + instanceId(o.getInstanceId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetInstanceRequest 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 GetInstanceRequest + */ + public GetInstanceRequest build() { + GetInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetInstanceRequest 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 GetInstanceRequest + */ + public GetInstanceRequest buildWithoutInvocationCallback() { + GetInstanceRequest request = new GetInstanceRequest(); + request.instanceId = instanceId; + request.opcRequestId = opcRequestId; + return request; + // new GetInstanceRequest(instanceId, 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().instanceId(instanceId).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(",instanceId=").append(String.valueOf(this.instanceId)); + 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 GetInstanceRequest)) { + return false; + } + + GetInstanceRequest other = (GetInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetWorkRequestRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..2bb6223b981 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/GetWorkRequestRequest.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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListInstancesRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListInstancesRequest.java new file mode 100644 index 00000000000..d4013820b7a --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListInstancesRequest.java @@ -0,0 +1,506 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use ListInstancesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListInstancesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources that match the given lifecycle state. The state value is + * case-insensitive. + */ + private com.oracle.bmc.ddfs.model.Instance.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state. The state value is + * case-insensitive. + */ + public com.oracle.bmc.ddfs.model.Instance.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the given display name exactly. */ + private String displayName; + + /** A filter to return only resources that match the given display name exactly. */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + public String getId() { + return id; + } + /** + * 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; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.ddfs.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInstancesRequest, 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 + * compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state. The state value + * is case-insensitive. + */ + private com.oracle.bmc.ddfs.model.Instance.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state. The state value + * is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.ddfs.model.Instance.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the given display name exactly. */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String id = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + 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; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.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.ddfs.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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; + } + + /** + * 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(ListInstancesRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListInstancesRequest 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 ListInstancesRequest + */ + public ListInstancesRequest build() { + ListInstancesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInstancesRequest 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 ListInstancesRequest + */ + public ListInstancesRequest buildWithoutInvocationCallback() { + ListInstancesRequest request = new ListInstancesRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListInstancesRequest(compartmentId, lifecycleState, displayName, id, limit, page, + // sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInstancesRequest)) { + return false; + } + + ListInstancesRequest other = (ListInstancesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestErrorsRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..28c097b47b3 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,403 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * 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 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; + } + /** + * 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; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.ddfs.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * 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 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; + } + + /** + * 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; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} 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 ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.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.ddfs.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestLogsRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..bd854954177 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,401 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * 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 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; + } + /** + * 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; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.ddfs.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * 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 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; + } + + /** + * 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; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeCreated} 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 ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.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.ddfs.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestsRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..373723b9319 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/ListWorkRequestsRequest.java @@ -0,0 +1,504 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** A filter to return only work requests that match the given status. */ + private com.oracle.bmc.ddfs.model.OperationStatus status; + + /** A filter to return only work requests that match the given status. */ + public com.oracle.bmc.ddfs.model.OperationStatus getStatus() { + return status; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + public String getResourceId() { + return resourceId; + } + /** + * 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 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; + } + /** + * 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; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.ddfs.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** A filter to return only work requests that match the given status. */ + private com.oracle.bmc.ddfs.model.OperationStatus status = null; + + /** + * A filter to return only work requests that match the given status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.ddfs.model.OperationStatus status) { + this.status = status; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + 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 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; + } + + /** + * 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; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.ddfs.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.ddfs.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/UpdateInstanceRequest.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/UpdateInstanceRequest.java new file mode 100644 index 00000000000..26a7ad7be4f --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/requests/UpdateInstanceRequest.java @@ -0,0 +1,318 @@ +/** + * 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.ddfs.requests; + +import com.oracle.bmc.ddfs.model.*; +/** + * Example: Click here to see how to use UpdateInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class UpdateInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ddfs.model.UpdateInstanceDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + private String instanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + */ + public String getInstanceId() { + return instanceId; + } + /** The information to be updated. */ + private com.oracle.bmc.ddfs.model.UpdateInstanceDetails updateInstanceDetails; + + /** The information to be updated. */ + public com.oracle.bmc.ddfs.model.UpdateInstanceDetails getUpdateInstanceDetails() { + return updateInstanceDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.ddfs.model.UpdateInstanceDetails getBody$() { + return updateInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateInstanceRequest, com.oracle.bmc.ddfs.model.UpdateInstanceDetails> { + 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 + * Instance. + */ + private String instanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Instance. + * + * @param instanceId the value to set + * @return this builder instance + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.ddfs.model.UpdateInstanceDetails updateInstanceDetails = null; + + /** + * The information to be updated. + * + * @param updateInstanceDetails the value to set + * @return this builder instance + */ + public Builder updateInstanceDetails( + com.oracle.bmc.ddfs.model.UpdateInstanceDetails updateInstanceDetails) { + this.updateInstanceDetails = updateInstanceDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique 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; + } + + /** + * 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(UpdateInstanceRequest o) { + instanceId(o.getInstanceId()); + updateInstanceDetails(o.getUpdateInstanceDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateInstanceRequest 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 UpdateInstanceRequest + */ + public UpdateInstanceRequest build() { + UpdateInstanceRequest 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.ddfs.model.UpdateInstanceDetails body) { + updateInstanceDetails(body); + return this; + } + + /** + * Build the instance of UpdateInstanceRequest 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 UpdateInstanceRequest + */ + public UpdateInstanceRequest buildWithoutInvocationCallback() { + UpdateInstanceRequest request = new UpdateInstanceRequest(); + request.instanceId = instanceId; + request.updateInstanceDetails = updateInstanceDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateInstanceRequest(instanceId, updateInstanceDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .instanceId(instanceId) + .updateInstanceDetails(updateInstanceDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",instanceId=").append(String.valueOf(this.instanceId)); + sb.append(",updateInstanceDetails=").append(String.valueOf(this.updateInstanceDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInstanceRequest)) { + return false; + } + + UpdateInstanceRequest other = (UpdateInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.updateInstanceDetails, other.updateInstanceDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.updateInstanceDetails == null + ? 43 + : this.updateInstanceDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CancelWorkRequestResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..8e581c0400f --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CancelWorkRequestResponse.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class CancelWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestResponse)) { + return false; + } + + CancelWorkRequestResponse other = (CancelWorkRequestResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ChangeInstanceCompartmentResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ChangeInstanceCompartmentResponse.java new file mode 100644 index 00000000000..7a9120b9fec --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ChangeInstanceCompartmentResponse.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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ChangeInstanceCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeInstanceCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeInstanceCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeInstanceCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeInstanceCompartmentResponse build() { + return new ChangeInstanceCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInstanceCompartmentResponse)) { + return false; + } + + ChangeInstanceCompartmentResponse other = (ChangeInstanceCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CreateInstanceResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CreateInstanceResponse.java new file mode 100644 index 00000000000..4102c838805 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/CreateInstanceResponse.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class CreateInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** URL for the created instance. The instance OCID is generated after this request is sent. */ + private String location; + + /** + * URL for the created instance. The instance OCID is generated after this request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Instance} instance. */ + private com.oracle.bmc.ddfs.model.Instance instance; + + /** + * The returned {@code Instance} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.Instance getInstance() { + return instance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "instance" + }) + private CreateInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.ddfs.model.Instance instance) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.instance = instance; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created instance. The instance OCID is generated after this request is sent. + */ + private String location; + + /** + * URL for the created instance. The instance OCID is generated after this request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * 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 Instance} instance. */ + private com.oracle.bmc.ddfs.model.Instance instance; + + /** + * The returned {@code Instance} instance. + * + * @param instance the value to set + * @return this builder + */ + public Builder instance(com.oracle.bmc.ddfs.model.Instance instance) { + this.instance = instance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + instance(o.getInstance()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateInstanceResponse build() { + return new CreateInstanceResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + instance); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",instance=").append(String.valueOf(instance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInstanceResponse)) { + return false; + } + + CreateInstanceResponse other = (CreateInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.instance, other.instance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.instance == null ? 43 : this.instance.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/DeleteInstanceResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/DeleteInstanceResponse.java new file mode 100644 index 00000000000..83b9d9647d1 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/DeleteInstanceResponse.java @@ -0,0 +1,189 @@ +/** + * 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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class DeleteInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteInstanceResponse build() { + return new DeleteInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteInstanceResponse)) { + return false; + } + + DeleteInstanceResponse other = (DeleteInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetInstanceResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetInstanceResponse.java new file mode 100644 index 00000000000..b12a8a2c486 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetInstanceResponse.java @@ -0,0 +1,208 @@ +/** + * 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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class GetInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Instance} instance. */ + private com.oracle.bmc.ddfs.model.Instance instance; + + /** + * The returned {@code Instance} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.Instance getInstance() { + return instance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "instance" + }) + private GetInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.ddfs.model.Instance instance) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.instance = instance; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Instance} instance. */ + private com.oracle.bmc.ddfs.model.Instance instance; + + /** + * The returned {@code Instance} instance. + * + * @param instance the value to set + * @return this builder + */ + public Builder instance(com.oracle.bmc.ddfs.model.Instance instance) { + this.instance = instance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + instance(o.getInstance()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetInstanceResponse build() { + return new GetInstanceResponse( + __httpStatusCode__, headers, etag, opcRequestId, instance); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",instance=").append(String.valueOf(instance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInstanceResponse)) { + return false; + } + + GetInstanceResponse other = (GetInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.instance, other.instance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.instance == null ? 43 : this.instance.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetWorkRequestResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..f7e538b25ea --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/GetWorkRequestResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.ddfs.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.ddfs.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListInstancesResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListInstancesResponse.java new file mode 100644 index 00000000000..4b4dff0f0a6 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListInstancesResponse.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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListInstancesResponse 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 InstanceCollection} instance. */ + private com.oracle.bmc.ddfs.model.InstanceCollection instanceCollection; + + /** + * The returned {@code InstanceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.InstanceCollection getInstanceCollection() { + return instanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "instanceCollection" + }) + private ListInstancesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.ddfs.model.InstanceCollection instanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.instanceCollection = instanceCollection; + } + + 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 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 InstanceCollection} instance. */ + private com.oracle.bmc.ddfs.model.InstanceCollection instanceCollection; + + /** + * The returned {@code InstanceCollection} instance. + * + * @param instanceCollection the value to set + * @return this builder + */ + public Builder instanceCollection( + com.oracle.bmc.ddfs.model.InstanceCollection instanceCollection) { + this.instanceCollection = instanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListInstancesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + instanceCollection(o.getInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListInstancesResponse build() { + return new ListInstancesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, instanceCollection); + } + } + + /** + * 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(",instanceCollection=").append(String.valueOf(instanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInstancesResponse)) { + return false; + } + + ListInstancesResponse other = (ListInstancesResponse) 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.instanceCollection, other.instanceCollection); + } + + @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.instanceCollection == null + ? 43 + : this.instanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestErrorsResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..9698733c349 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestErrorsResponse.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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.ddfs.model.WorkRequestErrorCollection workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.ddfs.model.WorkRequestErrorCollection workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestLogsResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..c811f0074c2 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,234 @@ +/** + * 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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestsResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..738b9a2855e --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/ListWorkRequestsResponse.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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For 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 WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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 WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/UpdateInstanceResponse.java b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/UpdateInstanceResponse.java new file mode 100644 index 00000000000..7418d6120d3 --- /dev/null +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/responses/UpdateInstanceResponse.java @@ -0,0 +1,189 @@ +/** + * 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.ddfs.responses; + +import com.oracle.bmc.ddfs.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") +public class UpdateInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateInstanceResponse build() { + return new UpdateInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInstanceResponse)) { + return false; + } + + UpdateInstanceResponse other = (UpdateInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-ddfs/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ddfs/reflect-config.json b/bmc-ddfs/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ddfs/reflect-config.json new file mode 100644 index 00000000000..12a6cf6c04a --- /dev/null +++ b/bmc-ddfs/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ddfs/reflect-config.json @@ -0,0 +1,234 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.ChangeInstanceCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.CreateInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.CreateInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.Instance", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.Instance$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.Instance$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.InstanceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.InstanceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.InstanceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.InstanceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.UpdateInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.UpdateInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ddfs.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-ddfs/src/main/resources/com/oracle/bmc/ddfs/client.properties b/bmc-ddfs/src/main/resources/com/oracle/bmc/ddfs/client.properties new file mode 100644 index 00000000000..3c2c331f5c7 --- /dev/null +++ b/bmc-ddfs/src/main/resources/com/oracle/bmc/ddfs/client.properties @@ -0,0 +1,9 @@ +# +# 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. +# + +java.client.codegen.version = 2.170 +java.minimum.client.codegen.version.from.client = 2.170 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260831") \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index faf17e354eb..143d2f1bd65 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 389a6117d02..9244bd12955 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 2c658b2db79..13410956870 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 5b8e6081116..6db539a5299 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index f2ce37ef6a7..392dadf4c5d 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index bc9a430baee..38ded467860 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 851342115c8..06d733f662c 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml new file mode 100644 index 00000000000..64da720763d --- /dev/null +++ b/bmc-distributeddatabasev26/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.94.1 + ../pom.xml + + oci-java-sdk-distributeddatabasev26 + Oracle Cloud Infrastructure SDK - Distributed Database V26 + This project contains the SDK used for Oracle Cloud Infrastructure Distributed Database V26 + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.94.1 + + + \ No newline at end of file diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java new file mode 100644 index 00000000000..67586ebdf9b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java @@ -0,0 +1,520 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the + * operations by default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedAutonomousDbService extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

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

Example: Click here to see how to use + * AddDistributedAutonomousDatabaseGdsControlNode API. + */ + AddDistributedAutonomousDatabaseGdsControlNodeResponse + addDistributedAutonomousDatabaseGdsControlNode( + AddDistributedAutonomousDatabaseGdsControlNodeRequest request); + + /** + * Move the Globally distributed autonomous database and its dependent resources to the + * specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDistributedAutonomousDatabaseCompartment API. + */ + ChangeDistributedAutonomousDatabaseCompartmentResponse + changeDistributedAutonomousDatabaseCompartment( + ChangeDistributedAutonomousDatabaseCompartmentRequest request); + + /** + * Change the DbBackupConfig for the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDistributedAutonomousDbBackupConfig API. + */ + ChangeDistributedAutonomousDbBackupConfigResponse changeDistributedAutonomousDbBackupConfig( + ChangeDistributedAutonomousDbBackupConfigRequest request); + + /** + * Configure autoResourceManagement options for the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseAutoResourceManagement API. + */ + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request); + + /** + * Configure wallets on Global Service Manager(GSM) instances for a Globally distributed + * autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseGsmWallet API. + */ + ConfigureDistributedAutonomousDatabaseGsmWalletResponse + configureDistributedAutonomousDatabaseGsmWallet( + ConfigureDistributedAutonomousDatabaseGsmWalletRequest request); + + /** + * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally + * distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseGsms API. + */ + ConfigureDistributedAutonomousDatabaseGsmsResponse configureDistributedAutonomousDatabaseGsms( + ConfigureDistributedAutonomousDatabaseGsmsRequest request); + + /** + * Once all components of Globally distributed autonomous database are provisioned, this api + * shall be invoked to configure sharding on the Globally distributed autonomous database. Note + * that this 'ConfigureSharding' API also needs to be invoked after successfully adding a new + * shard to the Globally distributed autonomous database using PATCH api. If this API is not + * invoked after successfully adding a new shard, then that new shard will not be a participant + * in sharding topology of the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * CreateDistributedAutonomousDatabase API. + */ + CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDatabase( + CreateDistributedAutonomousDatabaseRequest request); + + /** + * Terminate the given Globally distributed autonomous databases. + * + * @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 + * DeleteDistributedAutonomousDatabase API. + */ + DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDatabase( + DeleteDistributedAutonomousDatabaseRequest request); + + /** + * Generate the wallet associated with Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GenerateDistributedAutonomousDatabaseWallet API. + */ + GenerateDistributedAutonomousDatabaseWalletResponse generateDistributedAutonomousDatabaseWallet( + GenerateDistributedAutonomousDatabaseWalletRequest request); + + /** + * Gets the details of the Globally distributed autonomous database identified by given id. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetDistributedAutonomousDatabase API. + */ + GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request); + + /** + * Operation to retrieve RAFT metrics for the Globally distributed autonomous database. If the + * Globally distributed autonomous database is not RAFT based then empty response is returned + * from the API. + * + * @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 + * GetDistributedAutonomousDatabaseRaftMetric API. + */ + GetDistributedAutonomousDatabaseRaftMetricResponse getDistributedAutonomousDatabaseRaftMetric( + GetDistributedAutonomousDatabaseRaftMetricRequest request); + + /** + * Operation to retrieve move RU invocation history and status for the Globally distributed + * autonomous database. Results are ordered by created timestamp in descending order. + * + * @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 + * GetDistributedAutonomousDatabaseRuChangeLog API. + */ + GetDistributedAutonomousDatabaseRuChangeLogResponse getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request); + + /** + * List of Globally distributed autonomous databases. + * + * @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 + * ListDistributedAutonomousDatabases API. + */ + ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( + ListDistributedAutonomousDatabasesRequest request); + + /** + * Move the replication units for RAFT based globally distributed autonomous database from + * source shard to destination shard. + * + * @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 + * MoveDistributedAutonomousDatabaseReplicationUnit API. + */ + MoveDistributedAutonomousDatabaseReplicationUnitResponse + moveDistributedAutonomousDatabaseReplicationUnit( + MoveDistributedAutonomousDatabaseReplicationUnitRequest request); + + /** + * Patch operation to add, remove or update shards to the Globally distributed autonomous + * database topology. In single patch operation, multiple shards can be either added, or removed + * or updated. Combination of inserts, update and remove in single operation is not allowed. + * + * @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 + * PatchDistributedAutonomousDatabase API. + */ + PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousDatabase( + PatchDistributedAutonomousDatabaseRequest request); + + /** + * Recreate the failed resource for the Globally Distributed Autonomous Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RecreateFailedDistributedAutonomousDatabaseResource API. + */ + RecreateFailedDistributedAutonomousDatabaseResourceResponse + recreateFailedDistributedAutonomousDatabaseResource( + RecreateFailedDistributedAutonomousDatabaseResourceRequest request); + + /** + * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally + * distributed autonomous database. This operation will also remove GdsCtlNodes if present. + * + * @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 + * RotateDistributedAutonomousDatabasePasswords API. + */ + RotateDistributedAutonomousDatabasePasswordsResponse + rotateDistributedAutonomousDatabasePasswords( + RotateDistributedAutonomousDatabasePasswordsRequest request); + + /** + * Scale global service manager(GSM aka shard director) instances for the Globally distributed + * autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ScaleDistributedAutonomousDatabaseGsms API. + */ + ScaleDistributedAutonomousDatabaseGsmsResponse scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request); + + /** + * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * StartDistributedAutonomousDatabase API. + */ + StartDistributedAutonomousDatabaseResponse startDistributedAutonomousDatabase( + StartDistributedAutonomousDatabaseRequest request); + + /** + * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * UpdateDistributedAutonomousDatabase API. + */ + UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDatabase( + UpdateDistributedAutonomousDatabaseRequest request); + + /** + * Validate the CA Bundles consistency of the globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ValidateDistributedAutonomousDatabaseCaBundle API. + */ + ValidateDistributedAutonomousDatabaseCaBundleResponse + validateDistributedAutonomousDatabaseCaBundle( + ValidateDistributedAutonomousDatabaseCaBundleRequest request); + + /** + * Validate the network connectivity between components of the globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ValidateDistributedAutonomousDatabaseNetwork API. + */ + ValidateDistributedAutonomousDatabaseNetworkResponse + validateDistributedAutonomousDatabaseNetwork( + ValidateDistributedAutonomousDatabaseNetworkRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DistributedAutonomousDbServiceWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + DistributedAutonomousDbServicePaginators getPaginators(); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java new file mode 100644 index 00000000000..99da9a54ef0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java @@ -0,0 +1,517 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Add new Global database services control(GDS CTL) node for the Globally distributed + * autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + addDistributedAutonomousDatabaseGdsControlNode( + AddDistributedAutonomousDatabaseGdsControlNodeRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDistributedAutonomousDatabaseGdsControlNodeRequest, + AddDistributedAutonomousDatabaseGdsControlNodeResponse> + handler); + + /** + * Move the Globally distributed autonomous database and its dependent resources to the + * specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDistributedAutonomousDatabaseCompartment( + ChangeDistributedAutonomousDatabaseCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedAutonomousDatabaseCompartmentRequest, + ChangeDistributedAutonomousDatabaseCompartmentResponse> + handler); + + /** + * Change the DbBackupConfig for the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDistributedAutonomousDbBackupConfig( + ChangeDistributedAutonomousDbBackupConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedAutonomousDbBackupConfigRequest, + ChangeDistributedAutonomousDbBackupConfigResponse> + handler); + + /** + * Configure autoResourceManagement options for the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + handler); + + /** + * Configure wallets on Global Service Manager(GSM) instances for a Globally distributed + * autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedAutonomousDatabaseGsmWallet( + ConfigureDistributedAutonomousDatabaseGsmWalletRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseGsmWalletRequest, + ConfigureDistributedAutonomousDatabaseGsmWalletResponse> + handler); + + /** + * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally + * distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedAutonomousDatabaseGsms( + ConfigureDistributedAutonomousDatabaseGsmsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseGsmsRequest, + ConfigureDistributedAutonomousDatabaseGsmsResponse> + handler); + + /** + * Once all components of Globally distributed autonomous database are provisioned, this api + * shall be invoked to configure sharding on the Globally distributed autonomous database. Note + * that this 'ConfigureSharding' API also needs to be invoked after successfully adding a new + * shard to the Globally distributed autonomous database using PATCH api. If this API is not + * invoked after successfully adding a new shard, then that new shard will not be a participant + * in sharding topology of the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedAutonomousDatabaseSharding( + ConfigureDistributedAutonomousDatabaseShardingRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseShardingRequest, + ConfigureDistributedAutonomousDatabaseShardingResponse> + handler); + + /** + * Creates a Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + createDistributedAutonomousDatabase( + CreateDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDistributedAutonomousDatabaseRequest, + CreateDistributedAutonomousDatabaseResponse> + handler); + + /** + * Terminate the given Globally distributed autonomous databases. + * + * @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 + deleteDistributedAutonomousDatabase( + DeleteDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedAutonomousDatabaseRequest, + DeleteDistributedAutonomousDatabaseResponse> + handler); + + /** + * Generate the wallet associated with Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + generateDistributedAutonomousDatabaseWallet( + GenerateDistributedAutonomousDatabaseWalletRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateDistributedAutonomousDatabaseWalletRequest, + GenerateDistributedAutonomousDatabaseWalletResponse> + handler); + + /** + * Gets the details of the Globally distributed autonomous database identified by given id. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + getDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + handler); + + /** + * Operation to retrieve RAFT metrics for the Globally distributed autonomous database. If the + * Globally distributed autonomous database is not RAFT based then empty response is returned + * from the API. + * + * @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 + getDistributedAutonomousDatabaseRaftMetric( + GetDistributedAutonomousDatabaseRaftMetricRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRaftMetricRequest, + GetDistributedAutonomousDatabaseRaftMetricResponse> + handler); + + /** + * Operation to retrieve move RU invocation history and status for the Globally distributed + * autonomous database. Results are ordered by created timestamp in descending order. + * + * @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 + getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + handler); + + /** + * List of Globally distributed autonomous databases. + * + * @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 + listDistributedAutonomousDatabases( + ListDistributedAutonomousDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDistributedAutonomousDatabasesRequest, + ListDistributedAutonomousDatabasesResponse> + handler); + + /** + * Move the replication units for RAFT based globally distributed autonomous database from + * source shard to destination shard. + * + * @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 + moveDistributedAutonomousDatabaseReplicationUnit( + MoveDistributedAutonomousDatabaseReplicationUnitRequest request, + com.oracle.bmc.responses.AsyncHandler< + MoveDistributedAutonomousDatabaseReplicationUnitRequest, + MoveDistributedAutonomousDatabaseReplicationUnitResponse> + handler); + + /** + * Patch operation to add, remove or update shards to the Globally distributed autonomous + * database topology. In single patch operation, multiple shards can be either added, or removed + * or updated. Combination of inserts, update and remove in single operation is not allowed. + * + * @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 + patchDistributedAutonomousDatabase( + PatchDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchDistributedAutonomousDatabaseRequest, + PatchDistributedAutonomousDatabaseResponse> + handler); + + /** + * Recreate the failed resource for the Globally Distributed Autonomous Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + recreateFailedDistributedAutonomousDatabaseResource( + RecreateFailedDistributedAutonomousDatabaseResourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RecreateFailedDistributedAutonomousDatabaseResourceRequest, + RecreateFailedDistributedAutonomousDatabaseResourceResponse> + handler); + + /** + * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally + * distributed autonomous database. This operation will also remove GdsCtlNodes if present. + * + * @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 + rotateDistributedAutonomousDatabasePasswords( + RotateDistributedAutonomousDatabasePasswordsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RotateDistributedAutonomousDatabasePasswordsRequest, + RotateDistributedAutonomousDatabasePasswordsResponse> + handler); + + /** + * Scale global service manager(GSM aka shard director) instances for the Globally distributed + * autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse> + handler); + + /** + * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + startDistributedAutonomousDatabase( + StartDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + StartDistributedAutonomousDatabaseRequest, + StartDistributedAutonomousDatabaseResponse> + handler); + + /** + * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + stopDistributedAutonomousDatabase( + StopDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + StopDistributedAutonomousDatabaseRequest, + StopDistributedAutonomousDatabaseResponse> + handler); + + /** + * Updates the configuration of the Globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + updateDistributedAutonomousDatabase( + UpdateDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedAutonomousDatabaseRequest, + UpdateDistributedAutonomousDatabaseResponse> + handler); + + /** + * Validate the CA Bundles consistency of the globally distributed autonomous database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + validateDistributedAutonomousDatabaseCaBundle( + ValidateDistributedAutonomousDatabaseCaBundleRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedAutonomousDatabaseCaBundleRequest, + ValidateDistributedAutonomousDatabaseCaBundleResponse> + handler); + + /** + * Validate the network connectivity between components of the globally distributed autonomous + * database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + validateDistributedAutonomousDatabaseNetwork( + ValidateDistributedAutonomousDatabaseNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedAutonomousDatabaseNetworkRequest, + ValidateDistributedAutonomousDatabaseNetworkResponse> + handler); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java new file mode 100644 index 00000000000..62d09d97a19 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java @@ -0,0 +1,1326 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DistributedAutonomousDbService service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedAutonomousDbServiceAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DistributedAutonomousDbServiceAsync { + /** Service instance for DistributedAutonomousDbService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedAutonomousDbServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbServiceAsyncClient.class); + + DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "DistributedAutonomousDbServiceAsyncClient", + "generateDistributedAutonomousDatabaseWallet")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedAutonomousDbServiceAsyncClient> { + private boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedAutonomousDbServiceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedAutonomousDbServiceAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future + addDistributedAutonomousDatabaseGdsControlNode( + AddDistributedAutonomousDatabaseGdsControlNodeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDistributedAutonomousDatabaseGdsControlNodeRequest, + AddDistributedAutonomousDatabaseGdsControlNodeResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), + "addDistributedAutonomousDatabaseGdsControlNodeDetails is required"); + + return clientCall(request, AddDistributedAutonomousDatabaseGdsControlNodeResponse::builder) + .logger(LOG, "addDistributedAutonomousDatabaseGdsControlNode") + .serviceDetails( + "DistributedAutonomousDbService", + "AddDistributedAutonomousDatabaseGdsControlNode", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDistributedAutonomousDatabaseGdsControlNodeRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("addGdsControlNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AddDistributedAutonomousDatabaseGdsControlNodeResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AddDistributedAutonomousDatabaseGdsControlNodeResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDistributedAutonomousDatabaseCompartment( + ChangeDistributedAutonomousDatabaseCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedAutonomousDatabaseCompartmentRequest, + ChangeDistributedAutonomousDatabaseCompartmentResponse> + handler) { + Objects.requireNonNull( + request.getChangeDistributedAutonomousDatabaseCompartmentDetails(), + "changeDistributedAutonomousDatabaseCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ChangeDistributedAutonomousDatabaseCompartmentResponse::builder) + .logger(LOG, "changeDistributedAutonomousDatabaseCompartment") + .serviceDetails( + "DistributedAutonomousDbService", + "ChangeDistributedAutonomousDatabaseCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedAutonomousDatabaseCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedAutonomousDatabaseCompartmentResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedAutonomousDatabaseCompartmentResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDistributedAutonomousDbBackupConfig( + ChangeDistributedAutonomousDbBackupConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedAutonomousDbBackupConfigRequest, + ChangeDistributedAutonomousDbBackupConfigResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeDistributedAutonomousDbBackupConfigDetails(), + "changeDistributedAutonomousDbBackupConfigDetails is required"); + + return clientCall(request, ChangeDistributedAutonomousDbBackupConfigResponse::builder) + .logger(LOG, "changeDistributedAutonomousDbBackupConfig") + .serviceDetails( + "DistributedAutonomousDbService", + "ChangeDistributedAutonomousDbBackupConfig", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedAutonomousDbBackupConfigRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeDbBackupConfig") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedAutonomousDbBackupConfigResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedAutonomousDbBackupConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), + "configureDistributedAutonomousDatabaseAutoResourceManagementDetails is required"); + + return clientCall( + request, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + ::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseAutoResourceManagement") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + ::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureAutoResourceManagement") + .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.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails.class, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::distributedAutonomousDatabaseAutoResourceManagementDetails) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedAutonomousDatabaseGsmWallet( + ConfigureDistributedAutonomousDatabaseGsmWalletRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseGsmWalletRequest, + ConfigureDistributedAutonomousDatabaseGsmWalletResponse> + handler) { + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), + "configureDistributedAutonomousDatabaseGsmWalletDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseGsmWalletResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseGsmWallet") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseGsmWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseGsmWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsmWallet") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseGsmWalletResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseGsmWalletResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedAutonomousDatabaseGsms( + ConfigureDistributedAutonomousDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseGsmsRequest, + ConfigureDistributedAutonomousDatabaseGsmsResponse> + handler) { + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseGsmsDetails(), + "configureDistributedAutonomousDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseGsmsResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseGsms") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseGsmsResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseGsmsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedAutonomousDatabaseSharding( + ConfigureDistributedAutonomousDatabaseShardingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseShardingRequest, + ConfigureDistributedAutonomousDatabaseShardingResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseShardingResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseSharding") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseSharding", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseShardingRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureSharding") + .appendQueryParam("isRebalanceRequired", request.getIsRebalanceRequired()) + .appendQueryParam("certificateId", request.getCertificateId()) + .appendQueryParam("caBundleId", request.getCaBundleId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseShardingResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseShardingResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDistributedAutonomousDatabase( + CreateDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDistributedAutonomousDatabaseRequest, + CreateDistributedAutonomousDatabaseResponse> + handler) { + Objects.requireNonNull( + request.getCreateDistributedAutonomousDatabaseDetails(), + "createDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, CreateDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "createDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", "CreateDistributedAutonomousDatabase", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + CreateDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", CreateDistributedAutonomousDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDistributedAutonomousDatabase( + DeleteDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedAutonomousDatabaseRequest, + DeleteDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, DeleteDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "deleteDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "DeleteDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateDistributedAutonomousDatabaseWallet( + GenerateDistributedAutonomousDatabaseWalletRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateDistributedAutonomousDatabaseWalletRequest, + GenerateDistributedAutonomousDatabaseWalletResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getGenerateDistributedAutonomousDatabaseWalletDetails(), + "generateDistributedAutonomousDatabaseWalletDetails is required"); + + return clientCall(request, GenerateDistributedAutonomousDatabaseWalletResponse::builder) + .logger(LOG, "generateDistributedAutonomousDatabaseWallet") + .serviceDetails( + "DistributedAutonomousDbService", + "GenerateDistributedAutonomousDatabaseWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateDistributedAutonomousDatabaseWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("generateWallet") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + java.io.InputStream.class, + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateDistributedAutonomousDatabaseWalletResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::lastModified) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + GetDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetDistributedAutonomousDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedAutonomousDatabaseRaftMetric( + GetDistributedAutonomousDatabaseRaftMetricRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRaftMetricRequest, + GetDistributedAutonomousDatabaseRaftMetricResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseRaftMetricResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabaseRaftMetric") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRaftMetric", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRaftMetricRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("raftMetrics") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseRaftMetric.class, + GetDistributedAutonomousDatabaseRaftMetricResponse.Builder + ::distributedAutonomousDatabaseRaftMetric) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRaftMetricResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseRuChangeLogResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabaseRuChangeLog") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRuChangeLog", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRuChangeLogRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("ruChangeLog") + .appendQueryParam("sourceShardName", request.getSourceShardName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseRuChangeLog.class, + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder + ::distributedAutonomousDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDistributedAutonomousDatabases( + ListDistributedAutonomousDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDistributedAutonomousDatabasesRequest, + ListDistributedAutonomousDatabasesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedAutonomousDatabasesResponse::builder) + .logger(LOG, "listDistributedAutonomousDatabases") + .serviceDetails( + "DistributedAutonomousDbService", + "ListDistributedAutonomousDatabases", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedAutonomousDatabasesRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("privateEndpointId", request.getPrivateEndpointId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam( + "isAutoResourceManagementEnabled", + request.getIsAutoResourceManagementEnabled()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseCollection.class, + ListDistributedAutonomousDatabasesResponse.Builder + ::distributedAutonomousDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDistributedAutonomousDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDistributedAutonomousDatabasesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + moveDistributedAutonomousDatabaseReplicationUnit( + MoveDistributedAutonomousDatabaseReplicationUnitRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MoveDistributedAutonomousDatabaseReplicationUnitRequest, + MoveDistributedAutonomousDatabaseReplicationUnitResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), + "moveDistributedAutonomousDatabaseReplicationUnitDetails is required"); + + return clientCall( + request, MoveDistributedAutonomousDatabaseReplicationUnitResponse::builder) + .logger(LOG, "moveDistributedAutonomousDatabaseReplicationUnit") + .serviceDetails( + "DistributedAutonomousDbService", + "MoveDistributedAutonomousDatabaseReplicationUnit", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveDistributedAutonomousDatabaseReplicationUnitRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("moveReplicationUnit") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + MoveDistributedAutonomousDatabaseReplicationUnitResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + MoveDistributedAutonomousDatabaseReplicationUnitResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + patchDistributedAutonomousDatabase( + PatchDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchDistributedAutonomousDatabaseRequest, + PatchDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedAutonomousDatabaseDetails(), + "patchDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, PatchDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "patchDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "PatchDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + PatchDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + recreateFailedDistributedAutonomousDatabaseResource( + RecreateFailedDistributedAutonomousDatabaseResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RecreateFailedDistributedAutonomousDatabaseResourceRequest, + RecreateFailedDistributedAutonomousDatabaseResourceResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull(request.getResourceName(), "resourceName is required"); + + return clientCall( + request, + RecreateFailedDistributedAutonomousDatabaseResourceResponse::builder) + .logger(LOG, "recreateFailedDistributedAutonomousDatabaseResource") + .serviceDetails( + "DistributedAutonomousDbService", + "RecreateFailedDistributedAutonomousDatabaseResource", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RecreateFailedDistributedAutonomousDatabaseResourceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("recreateFailedResource") + .appendQueryParam("resourceName", request.getResourceName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", + RecreateFailedDistributedAutonomousDatabaseResourceResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RecreateFailedDistributedAutonomousDatabaseResourceResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + rotateDistributedAutonomousDatabasePasswords( + RotateDistributedAutonomousDatabasePasswordsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RotateDistributedAutonomousDatabasePasswordsRequest, + RotateDistributedAutonomousDatabasePasswordsResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getRotateDistributedAutonomousDatabasePasswordsDetails(), + "rotateDistributedAutonomousDatabasePasswordsDetails is required"); + + return clientCall(request, RotateDistributedAutonomousDatabasePasswordsResponse::builder) + .logger(LOG, "rotateDistributedAutonomousDatabasePasswords") + .serviceDetails( + "DistributedAutonomousDbService", + "RotateDistributedAutonomousDatabasePasswords", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RotateDistributedAutonomousDatabasePasswordsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("rotateDbPasswords") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RotateDistributedAutonomousDatabasePasswordsResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RotateDistributedAutonomousDatabasePasswordsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse> + handler) { + Objects.requireNonNull( + request.getScaleDistributedAutonomousDatabaseGsmsDetails(), + "scaleDistributedAutonomousDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ScaleDistributedAutonomousDatabaseGsmsResponse::builder) + .logger(LOG, "scaleDistributedAutonomousDatabaseGsms") + .serviceDetails( + "DistributedAutonomousDbService", + "ScaleDistributedAutonomousDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleDistributedAutonomousDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scaleGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleDistributedAutonomousDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScaleDistributedAutonomousDatabaseGsmsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + startDistributedAutonomousDatabase( + StartDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StartDistributedAutonomousDatabaseRequest, + StartDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, StartDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "startDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "StartDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("startDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + StartDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + StartDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + stopDistributedAutonomousDatabase( + StopDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StopDistributedAutonomousDatabaseRequest, + StopDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, StopDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "stopDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "StopDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("stopDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + StopDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + StopDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDistributedAutonomousDatabase( + UpdateDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedAutonomousDatabaseRequest, + UpdateDistributedAutonomousDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedAutonomousDatabaseDetails(), + "updateDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, UpdateDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "updateDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "UpdateDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + UpdateDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-request-id", + UpdateDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateDistributedAutonomousDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + validateDistributedAutonomousDatabaseCaBundle( + ValidateDistributedAutonomousDatabaseCaBundleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedAutonomousDatabaseCaBundleRequest, + ValidateDistributedAutonomousDatabaseCaBundleResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedAutonomousDatabaseCaBundleResponse::builder) + .logger(LOG, "validateDistributedAutonomousDatabaseCaBundle") + .serviceDetails( + "DistributedAutonomousDbService", + "ValidateDistributedAutonomousDatabaseCaBundle", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedAutonomousDatabaseCaBundleRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateCaBundle") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedAutonomousDatabaseCaBundleResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedAutonomousDatabaseCaBundleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + validateDistributedAutonomousDatabaseNetwork( + ValidateDistributedAutonomousDatabaseNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedAutonomousDatabaseNetworkRequest, + ValidateDistributedAutonomousDatabaseNetworkResponse> + handler) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedAutonomousDatabaseNetworkResponse::builder) + .logger(LOG, "validateDistributedAutonomousDatabaseNetwork") + .serviceDetails( + "DistributedAutonomousDbService", + "ValidateDistributedAutonomousDatabaseNetwork", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedAutonomousDatabaseNetworkRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateNetwork") + .appendQueryParam("isSurrogate", request.getIsSurrogate()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedAutonomousDatabaseNetworkResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedAutonomousDatabaseNetworkResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java new file mode 100644 index 00000000000..3c569f64379 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java @@ -0,0 +1,1326 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedAutonomousDbServiceClient + extends com.oracle.bmc.http.internal.BaseSyncClient + implements DistributedAutonomousDbService { + /** Service instance for DistributedAutonomousDbService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedAutonomousDbServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbServiceClient.class); + + private final DistributedAutonomousDbServiceWaiters waiters; + + private final DistributedAutonomousDbServicePaginators paginators; + + DistributedAutonomousDbServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + DistributedAutonomousDbServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DistributedAutonomousDbService-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DistributedAutonomousDbServiceWaiters(executorService, this); + + this.paginators = new DistributedAutonomousDbServicePaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "DistributedAutonomousDbServiceClient", + "generateDistributedAutonomousDatabaseWallet")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedAutonomousDbServiceClient> { + private boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedAutonomousDbServiceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedAutonomousDbServiceClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public AddDistributedAutonomousDatabaseGdsControlNodeResponse + addDistributedAutonomousDatabaseGdsControlNode( + AddDistributedAutonomousDatabaseGdsControlNodeRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), + "addDistributedAutonomousDatabaseGdsControlNodeDetails is required"); + + return clientCall(request, AddDistributedAutonomousDatabaseGdsControlNodeResponse::builder) + .logger(LOG, "addDistributedAutonomousDatabaseGdsControlNode") + .serviceDetails( + "DistributedAutonomousDbService", + "AddDistributedAutonomousDatabaseGdsControlNode", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDistributedAutonomousDatabaseGdsControlNodeRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("addGdsControlNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AddDistributedAutonomousDatabaseGdsControlNodeResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AddDistributedAutonomousDatabaseGdsControlNodeResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public ChangeDistributedAutonomousDatabaseCompartmentResponse + changeDistributedAutonomousDatabaseCompartment( + ChangeDistributedAutonomousDatabaseCompartmentRequest request) { + Objects.requireNonNull( + request.getChangeDistributedAutonomousDatabaseCompartmentDetails(), + "changeDistributedAutonomousDatabaseCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ChangeDistributedAutonomousDatabaseCompartmentResponse::builder) + .logger(LOG, "changeDistributedAutonomousDatabaseCompartment") + .serviceDetails( + "DistributedAutonomousDbService", + "ChangeDistributedAutonomousDatabaseCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedAutonomousDatabaseCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedAutonomousDatabaseCompartmentResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedAutonomousDatabaseCompartmentResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + + @Override + public ChangeDistributedAutonomousDbBackupConfigResponse + changeDistributedAutonomousDbBackupConfig( + ChangeDistributedAutonomousDbBackupConfigRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeDistributedAutonomousDbBackupConfigDetails(), + "changeDistributedAutonomousDbBackupConfigDetails is required"); + + return clientCall(request, ChangeDistributedAutonomousDbBackupConfigResponse::builder) + .logger(LOG, "changeDistributedAutonomousDbBackupConfig") + .serviceDetails( + "DistributedAutonomousDbService", + "ChangeDistributedAutonomousDbBackupConfig", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedAutonomousDbBackupConfigRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeDbBackupConfig") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedAutonomousDbBackupConfigResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedAutonomousDbBackupConfigResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), + "configureDistributedAutonomousDatabaseAutoResourceManagementDetails is required"); + + return clientCall( + request, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + ::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseAutoResourceManagement") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + ::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureAutoResourceManagement") + .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.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails.class, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::distributedAutonomousDatabaseAutoResourceManagementDetails) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::etag) + .callSync(); + } + + @Override + public ConfigureDistributedAutonomousDatabaseGsmWalletResponse + configureDistributedAutonomousDatabaseGsmWallet( + ConfigureDistributedAutonomousDatabaseGsmWalletRequest request) { + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), + "configureDistributedAutonomousDatabaseGsmWalletDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseGsmWalletResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseGsmWallet") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseGsmWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseGsmWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsmWallet") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseGsmWalletResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseGsmWalletResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public ConfigureDistributedAutonomousDatabaseGsmsResponse + configureDistributedAutonomousDatabaseGsms( + ConfigureDistributedAutonomousDatabaseGsmsRequest request) { + Objects.requireNonNull( + request.getConfigureDistributedAutonomousDatabaseGsmsDetails(), + "configureDistributedAutonomousDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseGsmsResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseGsms") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseGsmsResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseGsmsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ConfigureDistributedAutonomousDatabaseShardingResponse + configureDistributedAutonomousDatabaseSharding( + ConfigureDistributedAutonomousDatabaseShardingRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedAutonomousDatabaseShardingResponse::builder) + .logger(LOG, "configureDistributedAutonomousDatabaseSharding") + .serviceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseSharding", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedAutonomousDatabaseShardingRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureSharding") + .appendQueryParam("isRebalanceRequired", request.getIsRebalanceRequired()) + .appendQueryParam("certificateId", request.getCertificateId()) + .appendQueryParam("caBundleId", request.getCaBundleId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedAutonomousDatabaseShardingResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseShardingResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDatabase( + CreateDistributedAutonomousDatabaseRequest request) { + Objects.requireNonNull( + request.getCreateDistributedAutonomousDatabaseDetails(), + "createDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, CreateDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "createDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", "CreateDistributedAutonomousDatabase", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + CreateDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", CreateDistributedAutonomousDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDatabase( + DeleteDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, DeleteDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "deleteDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "DeleteDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GenerateDistributedAutonomousDatabaseWalletResponse + generateDistributedAutonomousDatabaseWallet( + GenerateDistributedAutonomousDatabaseWalletRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getGenerateDistributedAutonomousDatabaseWalletDetails(), + "generateDistributedAutonomousDatabaseWalletDetails is required"); + + return clientCall(request, GenerateDistributedAutonomousDatabaseWalletResponse::builder) + .logger(LOG, "generateDistributedAutonomousDatabaseWallet") + .serviceDetails( + "DistributedAutonomousDbService", + "GenerateDistributedAutonomousDatabaseWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateDistributedAutonomousDatabaseWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("generateWallet") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateDistributedAutonomousDatabaseWalletResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + GenerateDistributedAutonomousDatabaseWalletResponse.Builder::lastModified) + .callSync(); + } + + @Override + public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + GetDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetDistributedAutonomousDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public GetDistributedAutonomousDatabaseRaftMetricResponse + getDistributedAutonomousDatabaseRaftMetric( + GetDistributedAutonomousDatabaseRaftMetricRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseRaftMetricResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabaseRaftMetric") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRaftMetric", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRaftMetricRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("raftMetrics") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseRaftMetric.class, + GetDistributedAutonomousDatabaseRaftMetricResponse.Builder + ::distributedAutonomousDatabaseRaftMetric) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRaftMetricResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDistributedAutonomousDatabaseRuChangeLogResponse + getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, GetDistributedAutonomousDatabaseRuChangeLogResponse::builder) + .logger(LOG, "getDistributedAutonomousDatabaseRuChangeLog") + .serviceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRuChangeLog", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedAutonomousDatabaseRuChangeLogRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("ruChangeLog") + .appendQueryParam("sourceShardName", request.getSourceShardName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseRuChangeLog.class, + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder + ::distributedAutonomousDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( + ListDistributedAutonomousDatabasesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedAutonomousDatabasesResponse::builder) + .logger(LOG, "listDistributedAutonomousDatabases") + .serviceDetails( + "DistributedAutonomousDbService", + "ListDistributedAutonomousDatabases", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedAutonomousDatabasesRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("privateEndpointId", request.getPrivateEndpointId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam( + "isAutoResourceManagementEnabled", + request.getIsAutoResourceManagementEnabled()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseCollection.class, + ListDistributedAutonomousDatabasesResponse.Builder + ::distributedAutonomousDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDistributedAutonomousDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDistributedAutonomousDatabasesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public MoveDistributedAutonomousDatabaseReplicationUnitResponse + moveDistributedAutonomousDatabaseReplicationUnit( + MoveDistributedAutonomousDatabaseReplicationUnitRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), + "moveDistributedAutonomousDatabaseReplicationUnitDetails is required"); + + return clientCall( + request, MoveDistributedAutonomousDatabaseReplicationUnitResponse::builder) + .logger(LOG, "moveDistributedAutonomousDatabaseReplicationUnit") + .serviceDetails( + "DistributedAutonomousDbService", + "MoveDistributedAutonomousDatabaseReplicationUnit", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveDistributedAutonomousDatabaseReplicationUnitRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("moveReplicationUnit") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + MoveDistributedAutonomousDatabaseReplicationUnitResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + MoveDistributedAutonomousDatabaseReplicationUnitResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousDatabase( + PatchDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedAutonomousDatabaseDetails(), + "patchDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, PatchDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "patchDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "PatchDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + PatchDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RecreateFailedDistributedAutonomousDatabaseResourceResponse + recreateFailedDistributedAutonomousDatabaseResource( + RecreateFailedDistributedAutonomousDatabaseResourceRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull(request.getResourceName(), "resourceName is required"); + + return clientCall( + request, + RecreateFailedDistributedAutonomousDatabaseResourceResponse::builder) + .logger(LOG, "recreateFailedDistributedAutonomousDatabaseResource") + .serviceDetails( + "DistributedAutonomousDbService", + "RecreateFailedDistributedAutonomousDatabaseResource", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RecreateFailedDistributedAutonomousDatabaseResourceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("recreateFailedResource") + .appendQueryParam("resourceName", request.getResourceName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + RecreateFailedDistributedAutonomousDatabaseResourceResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RecreateFailedDistributedAutonomousDatabaseResourceResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public RotateDistributedAutonomousDatabasePasswordsResponse + rotateDistributedAutonomousDatabasePasswords( + RotateDistributedAutonomousDatabasePasswordsRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getRotateDistributedAutonomousDatabasePasswordsDetails(), + "rotateDistributedAutonomousDatabasePasswordsDetails is required"); + + return clientCall(request, RotateDistributedAutonomousDatabasePasswordsResponse::builder) + .logger(LOG, "rotateDistributedAutonomousDatabasePasswords") + .serviceDetails( + "DistributedAutonomousDbService", + "RotateDistributedAutonomousDatabasePasswords", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RotateDistributedAutonomousDatabasePasswordsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("rotateDbPasswords") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RotateDistributedAutonomousDatabasePasswordsResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RotateDistributedAutonomousDatabasePasswordsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ScaleDistributedAutonomousDatabaseGsmsResponse scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request) { + Objects.requireNonNull( + request.getScaleDistributedAutonomousDatabaseGsmsDetails(), + "scaleDistributedAutonomousDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ScaleDistributedAutonomousDatabaseGsmsResponse::builder) + .logger(LOG, "scaleDistributedAutonomousDatabaseGsms") + .serviceDetails( + "DistributedAutonomousDbService", + "ScaleDistributedAutonomousDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleDistributedAutonomousDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scaleGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleDistributedAutonomousDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScaleDistributedAutonomousDatabaseGsmsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StartDistributedAutonomousDatabaseResponse startDistributedAutonomousDatabase( + StartDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, StartDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "startDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "StartDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("startDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + StartDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + StartDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDatabase( + StopDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, StopDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "stopDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "StopDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("stopDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + StopDistributedAutonomousDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + StopDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDatabase( + UpdateDistributedAutonomousDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedAutonomousDatabaseDetails(), + "updateDistributedAutonomousDatabaseDetails is required"); + + return clientCall(request, UpdateDistributedAutonomousDatabaseResponse::builder) + .logger(LOG, "updateDistributedAutonomousDatabase") + .serviceDetails( + "DistributedAutonomousDbService", + "UpdateDistributedAutonomousDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedAutonomousDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .class, + UpdateDistributedAutonomousDatabaseResponse.Builder + ::distributedAutonomousDatabase) + .handleResponseHeaderString( + "opc-request-id", + UpdateDistributedAutonomousDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateDistributedAutonomousDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public ValidateDistributedAutonomousDatabaseCaBundleResponse + validateDistributedAutonomousDatabaseCaBundle( + ValidateDistributedAutonomousDatabaseCaBundleRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedAutonomousDatabaseCaBundleResponse::builder) + .logger(LOG, "validateDistributedAutonomousDatabaseCaBundle") + .serviceDetails( + "DistributedAutonomousDbService", + "ValidateDistributedAutonomousDatabaseCaBundle", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedAutonomousDatabaseCaBundleRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateCaBundle") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedAutonomousDatabaseCaBundleResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedAutonomousDatabaseCaBundleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ValidateDistributedAutonomousDatabaseNetworkResponse + validateDistributedAutonomousDatabaseNetwork( + ValidateDistributedAutonomousDatabaseNetworkRequest request) { + + Validate.notBlank( + request.getDistributedAutonomousDatabaseId(), + "distributedAutonomousDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedAutonomousDatabaseNetworkResponse::builder) + .logger(LOG, "validateDistributedAutonomousDatabaseNetwork") + .serviceDetails( + "DistributedAutonomousDbService", + "ValidateDistributedAutonomousDatabaseNetwork", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedAutonomousDatabaseNetworkRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedAutonomousDatabases") + .appendPathParam(request.getDistributedAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateNetwork") + .appendQueryParam("isSurrogate", request.getIsSurrogate()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedAutonomousDatabaseNetworkResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedAutonomousDatabaseNetworkResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DistributedAutonomousDbServiceWaiters getWaiters() { + return waiters; + } + + @Override + public DistributedAutonomousDbServicePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedAutonomousDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java new file mode 100644 index 00000000000..f8211d50375 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DistributedAutonomousDbService where multiple pages of data may be + * fetched. Two styles of iteration are supported: + * + *

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

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

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedAutonomousDbServiceWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DistributedAutonomousDbService client; + + public DistributedAutonomousDbServiceWaiters( + java.util.concurrent.ExecutorService executorService, + DistributedAutonomousDbService client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + forDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .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 forDistributedAutonomousDatabase( + 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< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + forDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .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 forDistributedAutonomousDatabase( + 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< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + forDistributedAutonomousDatabase( + GetDistributedAutonomousDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .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 forDistributedAutonomousDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DistributedAutonomousDatabase. + private com.oracle.bmc.waiter.Waiter< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse> + forDistributedAutonomousDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDistributedAutonomousDatabaseRequest request, + final com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .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< + GetDistributedAutonomousDatabaseRequest, + GetDistributedAutonomousDatabaseResponse>() { + @Override + public GetDistributedAutonomousDatabaseResponse apply( + GetDistributedAutonomousDatabaseRequest request) { + return client.getDistributedAutonomousDatabase(request); + } + }, + new java.util.function.Predicate< + GetDistributedAutonomousDatabaseResponse>() { + @Override + public boolean test(GetDistributedAutonomousDatabaseResponse response) { + return targetStatesSet.contains( + response.getDistributedAutonomousDatabase() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabase.LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java new file mode 100644 index 00000000000..d10c024af27 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java @@ -0,0 +1,219 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the + * operations by default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbPrivateEndpointService extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

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

Example: Click here to see how to use + * ChangeDistributedDatabasePrivateEndpointCompartment API. + */ + ChangeDistributedDatabasePrivateEndpointCompartmentResponse + changeDistributedDatabasePrivateEndpointCompartment( + ChangeDistributedDatabasePrivateEndpointCompartmentRequest request); + + /** + * Creates a DistributedDatabasePrivateEndpoint. + * + * @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 + * CreateDistributedDatabasePrivateEndpoint API. + */ + CreateDistributedDatabasePrivateEndpointResponse createDistributedDatabasePrivateEndpoint( + CreateDistributedDatabasePrivateEndpointRequest request); + + /** + * Deletes the given DistributedDatabasePrivateEndpoint. + * + * @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 + * DeleteDistributedDatabasePrivateEndpoint API. + */ + DeleteDistributedDatabasePrivateEndpointResponse deleteDistributedDatabasePrivateEndpoint( + DeleteDistributedDatabasePrivateEndpointRequest request); + + /** + * Get the DistributedDatabasePrivateEndpoint resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetDistributedDatabasePrivateEndpoint API. + */ + GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request); + + /** + * List of DistributedDatabasePrivateEndpoints. + * + * @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 + * ListDistributedDatabasePrivateEndpoints API. + */ + ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePrivateEndpoints( + ListDistributedDatabasePrivateEndpointsRequest request); + + /** + * Patch operation to update VCN network security group (NSG) IDs associated with the + * DistributedDatabasePrivateEndpoint. + * + * @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 + * PatchDistributedDatabasePrivateEndpoint API. + */ + PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request); + + /** + * Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint. + * + * @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 + * ReinstateProxyInstance API. + */ + ReinstateProxyInstanceResponse reinstateProxyInstance(ReinstateProxyInstanceRequest request); + + /** + * Updates the configuration of DistributedDatabasePrivateEndpoint. + * + * @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 + * UpdateDistributedDatabasePrivateEndpoint API. + */ + UpdateDistributedDatabasePrivateEndpointResponse updateDistributedDatabasePrivateEndpoint( + UpdateDistributedDatabasePrivateEndpointRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DistributedDbPrivateEndpointServiceWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + DistributedDbPrivateEndpointServicePaginators getPaginators(); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java new file mode 100644 index 00000000000..5b31c185ad7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java @@ -0,0 +1,207 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Moves the DistributedDatabasePrivateEndpoint to the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDistributedDatabasePrivateEndpointCompartment( + ChangeDistributedDatabasePrivateEndpointCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDatabasePrivateEndpointCompartmentRequest, + ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + handler); + + /** + * Creates a DistributedDatabasePrivateEndpoint. + * + * @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 + createDistributedDatabasePrivateEndpoint( + CreateDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDistributedDatabasePrivateEndpointRequest, + CreateDistributedDatabasePrivateEndpointResponse> + handler); + + /** + * Deletes the given DistributedDatabasePrivateEndpoint. + * + * @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 + deleteDistributedDatabasePrivateEndpoint( + DeleteDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedDatabasePrivateEndpointRequest, + DeleteDistributedDatabasePrivateEndpointResponse> + handler); + + /** + * Get the DistributedDatabasePrivateEndpoint resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + getDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + handler); + + /** + * List of DistributedDatabasePrivateEndpoints. + * + * @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 + listDistributedDatabasePrivateEndpoints( + ListDistributedDatabasePrivateEndpointsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDistributedDatabasePrivateEndpointsRequest, + ListDistributedDatabasePrivateEndpointsResponse> + handler); + + /** + * Patch operation to update VCN network security group (NSG) IDs associated with the + * DistributedDatabasePrivateEndpoint. + * + * @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 + patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse> + handler); + + /** + * Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint. + * + * @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 reinstateProxyInstance( + ReinstateProxyInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + handler); + + /** + * Updates the configuration of DistributedDatabasePrivateEndpoint. + * + * @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 + updateDistributedDatabasePrivateEndpoint( + UpdateDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedDatabasePrivateEndpointRequest, + UpdateDistributedDatabasePrivateEndpointResponse> + handler); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java new file mode 100644 index 00000000000..772978577c3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java @@ -0,0 +1,591 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DistributedDbPrivateEndpointService service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbPrivateEndpointServiceAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DistributedDbPrivateEndpointServiceAsync { + /** Service instance for DistributedDbPrivateEndpointService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbPrivateEndpointServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbPrivateEndpointServiceAsyncClient.class); + + DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbPrivateEndpointServiceAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbPrivateEndpointServiceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbPrivateEndpointServiceAsyncClient( + this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future + changeDistributedDatabasePrivateEndpointCompartment( + ChangeDistributedDatabasePrivateEndpointCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDatabasePrivateEndpointCompartmentRequest, + ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + handler) { + Objects.requireNonNull( + request.getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), + "changeDistributedDatabasePrivateEndpointCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall( + request, + ChangeDistributedDatabasePrivateEndpointCompartmentResponse::builder) + .logger(LOG, "changeDistributedDatabasePrivateEndpointCompartment") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ChangeDistributedDatabasePrivateEndpointCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDatabasePrivateEndpointCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDatabasePrivateEndpointCompartmentResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDatabasePrivateEndpointCompartmentResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDistributedDatabasePrivateEndpoint( + CreateDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDistributedDatabasePrivateEndpointRequest, + CreateDistributedDatabasePrivateEndpointResponse> + handler) { + Objects.requireNonNull( + request.getCreateDistributedDatabasePrivateEndpointDetails(), + "createDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, CreateDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "createDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "CreateDistributedDatabasePrivateEndpoint", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + CreateDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", CreateDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDistributedDatabasePrivateEndpoint( + DeleteDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedDatabasePrivateEndpointRequest, + DeleteDistributedDatabasePrivateEndpointResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, DeleteDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "deleteDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "DeleteDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, GetDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "getDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "GetDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + GetDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDistributedDatabasePrivateEndpoints( + ListDistributedDatabasePrivateEndpointsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDistributedDatabasePrivateEndpointsRequest, + ListDistributedDatabasePrivateEndpointsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedDatabasePrivateEndpointsResponse::builder) + .logger(LOG, "listDistributedDatabasePrivateEndpoints") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ListDistributedDatabasePrivateEndpoints", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedDatabasePrivateEndpointsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpointCollection.class, + ListDistributedDatabasePrivateEndpointsResponse.Builder + ::distributedDatabasePrivateEndpointCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDistributedDatabasePrivateEndpointsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDistributedDatabasePrivateEndpointsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedDatabasePrivateEndpointDetails(), + "patchDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, PatchDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "patchDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "PatchDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + PatchDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future reinstateProxyInstance( + ReinstateProxyInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, ReinstateProxyInstanceResponse::builder) + .logger(LOG, "reinstateProxyInstance") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ReinstateProxyInstance", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReinstateProxyInstanceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .appendPathParam("actions") + .appendPathParam("reinstateProxyInstance") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", + ReinstateProxyInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ReinstateProxyInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDistributedDatabasePrivateEndpoint( + UpdateDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedDatabasePrivateEndpointRequest, + UpdateDistributedDatabasePrivateEndpointResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedDatabasePrivateEndpointDetails(), + "updateDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, UpdateDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "updateDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "UpdateDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .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.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + UpdateDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-request-id", + UpdateDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java new file mode 100644 index 00000000000..953a0a963cb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java @@ -0,0 +1,648 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbPrivateEndpointServiceClient + extends com.oracle.bmc.http.internal.BaseSyncClient + implements DistributedDbPrivateEndpointService { + /** Service instance for DistributedDbPrivateEndpointService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbPrivateEndpointServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbPrivateEndpointServiceClient.class); + + private final DistributedDbPrivateEndpointServiceWaiters waiters; + + private final DistributedDbPrivateEndpointServicePaginators paginators; + + DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DistributedDbPrivateEndpointService-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DistributedDbPrivateEndpointServiceWaiters(executorService, this); + + this.paginators = new DistributedDbPrivateEndpointServicePaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbPrivateEndpointServiceClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbPrivateEndpointServiceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbPrivateEndpointServiceClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public ChangeDistributedDatabasePrivateEndpointCompartmentResponse + changeDistributedDatabasePrivateEndpointCompartment( + ChangeDistributedDatabasePrivateEndpointCompartmentRequest request) { + Objects.requireNonNull( + request.getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), + "changeDistributedDatabasePrivateEndpointCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall( + request, + ChangeDistributedDatabasePrivateEndpointCompartmentResponse::builder) + .logger(LOG, "changeDistributedDatabasePrivateEndpointCompartment") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ChangeDistributedDatabasePrivateEndpointCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDatabasePrivateEndpointCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDatabasePrivateEndpointCompartmentResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDatabasePrivateEndpointCompartmentResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public CreateDistributedDatabasePrivateEndpointResponse + createDistributedDatabasePrivateEndpoint( + CreateDistributedDatabasePrivateEndpointRequest request) { + Objects.requireNonNull( + request.getCreateDistributedDatabasePrivateEndpointDetails(), + "createDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, CreateDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "createDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "CreateDistributedDatabasePrivateEndpoint", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + CreateDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", CreateDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteDistributedDatabasePrivateEndpointResponse + deleteDistributedDatabasePrivateEndpoint( + DeleteDistributedDatabasePrivateEndpointRequest request) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, DeleteDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "deleteDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "DeleteDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, GetDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "getDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "GetDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + GetDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callSync(); + } + + @Override + public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePrivateEndpoints( + ListDistributedDatabasePrivateEndpointsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedDatabasePrivateEndpointsResponse::builder) + .logger(LOG, "listDistributedDatabasePrivateEndpoints") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ListDistributedDatabasePrivateEndpoints", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedDatabasePrivateEndpointsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpointCollection.class, + ListDistributedDatabasePrivateEndpointsResponse.Builder + ::distributedDatabasePrivateEndpointCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDistributedDatabasePrivateEndpointsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDistributedDatabasePrivateEndpointsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedDatabasePrivateEndpointDetails(), + "patchDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, PatchDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "patchDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "PatchDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedDatabasePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + PatchDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ReinstateProxyInstanceResponse reinstateProxyInstance( + ReinstateProxyInstanceRequest request) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + + return clientCall(request, ReinstateProxyInstanceResponse::builder) + .logger(LOG, "reinstateProxyInstance") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "ReinstateProxyInstance", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReinstateProxyInstanceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .appendPathParam("actions") + .appendPathParam("reinstateProxyInstance") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ReinstateProxyInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ReinstateProxyInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDistributedDatabasePrivateEndpointResponse + updateDistributedDatabasePrivateEndpoint( + UpdateDistributedDatabasePrivateEndpointRequest request) { + + Validate.notBlank( + request.getDistributedDatabasePrivateEndpointId(), + "distributedDatabasePrivateEndpointId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedDatabasePrivateEndpointDetails(), + "updateDistributedDatabasePrivateEndpointDetails is required"); + + return clientCall(request, UpdateDistributedDatabasePrivateEndpointResponse::builder) + .logger(LOG, "updateDistributedDatabasePrivateEndpoint") + .serviceDetails( + "DistributedDbPrivateEndpointService", + "UpdateDistributedDatabasePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedDatabasePrivateEndpointRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabasePrivateEndpoints") + .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) + .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.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.class, + UpdateDistributedDatabasePrivateEndpointResponse.Builder + ::distributedDatabasePrivateEndpoint) + .handleResponseHeaderString( + "opc-request-id", + UpdateDistributedDatabasePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateDistributedDatabasePrivateEndpointResponse.Builder::etag) + .callSync(); + } + + @Override + public DistributedDbPrivateEndpointServiceWaiters getWaiters() { + return waiters; + } + + @Override + public DistributedDbPrivateEndpointServicePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbPrivateEndpointServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java new file mode 100644 index 00000000000..a0c78d8d4ba --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java @@ -0,0 +1,184 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DistributedDbPrivateEndpointService where multiple pages of data may be + * fetched. Two styles of iteration are supported: + * + *

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

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

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbPrivateEndpointServiceWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DistributedDbPrivateEndpointService client; + + public DistributedDbPrivateEndpointServiceWaiters( + java.util.concurrent.ExecutorService executorService, + DistributedDbPrivateEndpointService client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + forDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .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 forDistributedDatabasePrivateEndpoint( + 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< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + forDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .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 forDistributedDatabasePrivateEndpoint( + 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< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + forDistributedDatabasePrivateEndpoint( + GetDistributedDatabasePrivateEndpointRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .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 forDistributedDatabasePrivateEndpoint( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DistributedDatabasePrivateEndpoint. + private com.oracle.bmc.waiter.Waiter< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse> + forDistributedDatabasePrivateEndpoint( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.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< + GetDistributedDatabasePrivateEndpointRequest, + GetDistributedDatabasePrivateEndpointResponse>() { + @Override + public GetDistributedDatabasePrivateEndpointResponse apply( + GetDistributedDatabasePrivateEndpointRequest request) { + return client.getDistributedDatabasePrivateEndpoint(request); + } + }, + new java.util.function.Predicate< + GetDistributedDatabasePrivateEndpointResponse>() { + @Override + public boolean test( + GetDistributedDatabasePrivateEndpointResponse response) { + return targetStatesSet.contains( + response.getDistributedDatabasePrivateEndpoint() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpoint.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java new file mode 100644 index 00000000000..16337d5ceb9 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java @@ -0,0 +1,469 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the + * operations by default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbService extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

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

Example: Click here to see how to use + * AddDistributedDatabaseGdsControlNode API. + */ + AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( + AddDistributedDatabaseGdsControlNodeRequest request); + + /** + * Move the Globally distributed database and its dependent resources to the specified + * compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * ChangeDistributedDbBackupConfig API. + */ + ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( + ChangeDistributedDbBackupConfigRequest request); + + /** + * Configure autoResourceManagement options for the Globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ConfigureDistributedDatabaseAutoResourceManagement API. + */ + ConfigureDistributedDatabaseAutoResourceManagementResponse + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request); + + /** + * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally + * distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ConfigureDistributedDatabaseGsms API. + */ + ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( + ConfigureDistributedDatabaseGsmsRequest request); + + /** + * Once all components of Globally distributed database are provisioned, and signed GSM + * certificates are successfully uploaded, this api shall be invoked to configure sharding on + * the Globally distributed database. Note that this 'ConfigureSharding' API also needs to be + * invoked after successfully adding a new shard to the Globally distributed database using + * PATCH api. If this API is not invoked after successfully adding a new shard, then that new + * shard will not be a participant in sharding topology of the Globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

Example: Click here to see how to use + * DeleteDistributedDatabase API. + */ + DeleteDistributedDatabaseResponse deleteDistributedDatabase( + DeleteDistributedDatabaseRequest request); + + /** + * Generate the wallet associated with Globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * GetDistributedDatabase API. + */ + GetDistributedDatabaseResponse getDistributedDatabase(GetDistributedDatabaseRequest request); + + /** + * Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally + * distributed database is not RAFT based then empty response is returned from the API. + * + * @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 + * GetDistributedDatabaseRaftMetric API. + */ + GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( + GetDistributedDatabaseRaftMetricRequest request); + + /** + * Operation to retrieve move RU invocation history and status for the Globally distributed + * database. Results are ordered by created timestamp in descending order. + * + * @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 + * GetDistributedDatabaseRuChangeLog API. + */ + GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request); + + /** + * List of Globally distributed databases. + * + * @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 + * ListDistributedDatabases API. + */ + ListDistributedDatabasesResponse listDistributedDatabases( + ListDistributedDatabasesRequest request); + + /** + * Move the replication units for RAFT based globally distributed database from source shard to + * destination shard. + * + * @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 + * MoveDistributedDatabaseReplicationUnit API. + */ + MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( + MoveDistributedDatabaseReplicationUnitRequest request); + + /** + * Patch operation to add, remove or update shards to the Globally distributed database + * topology. In single patch operation, multiple shards can be either added, or removed or + * updated. Combination of inserts, update and remove in single operation is not allowed. + * + * @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 + * PatchDistributedDatabase API. + */ + PatchDistributedDatabaseResponse patchDistributedDatabase( + PatchDistributedDatabaseRequest request); + + /** + * Recreate the failed resource for the Globally Distributed Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RecreateFailedDistributedDatabaseResource API. + */ + RecreateFailedDistributedDatabaseResourceResponse recreateFailedDistributedDatabaseResource( + RecreateFailedDistributedDatabaseResourceRequest request); + + /** + * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally + * distributed database. This operation will also remove GdsCtlNodes if present. + * + * @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 + * RotateDistributedDatabasePasswords API. + */ + RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( + RotateDistributedDatabasePasswordsRequest request); + + /** + * Scale global service manager(GSM aka shard manager) instances for the Globally distributed + * database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ScaleDistributedDatabaseGsms API. + */ + ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request); + + /** + * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * StartDistributedDatabase API. + */ + StartDistributedDatabaseResponse startDistributedDatabase( + StartDistributedDatabaseRequest request); + + /** + * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * UpdateDistributedDatabase API. + */ + UpdateDistributedDatabaseResponse updateDistributedDatabase( + UpdateDistributedDatabaseRequest request); + + /** + * Validate the network connectivity between components of the globally distributed database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ValidateDistributedDatabaseNetwork API. + */ + ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( + ValidateDistributedDatabaseNetworkRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DistributedDbServiceWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + DistributedDbServicePaginators getPaginators(); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java new file mode 100644 index 00000000000..b43c0ac9754 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java @@ -0,0 +1,457 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbServiceAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Add new Global database services control(GDS CTL) node for the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + addDistributedDatabaseGdsControlNode( + AddDistributedDatabaseGdsControlNodeRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDistributedDatabaseGdsControlNodeRequest, + AddDistributedDatabaseGdsControlNodeResponse> + handler); + + /** + * Move the Globally distributed database and its dependent resources to the specified + * compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDistributedDatabaseCompartment( + ChangeDistributedDatabaseCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDatabaseCompartmentRequest, + ChangeDistributedDatabaseCompartmentResponse> + handler); + + /** + * Change the DbBackupConfig for the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDistributedDbBackupConfig( + ChangeDistributedDbBackupConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDbBackupConfigRequest, + ChangeDistributedDbBackupConfigResponse> + handler); + + /** + * Configure autoResourceManagement options for the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + handler); + + /** + * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally + * distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedDatabaseGsms( + ConfigureDistributedDatabaseGsmsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseGsmsRequest, + ConfigureDistributedDatabaseGsmsResponse> + handler); + + /** + * Once all components of Globally distributed database are provisioned, and signed GSM + * certificates are successfully uploaded, this api shall be invoked to configure sharding on + * the Globally distributed database. Note that this 'ConfigureSharding' API also needs to be + * invoked after successfully adding a new shard to the Globally distributed database using + * PATCH api. If this API is not invoked after successfully adding a new shard, then that new + * shard will not be a participant in sharding topology of the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + configureDistributedDatabaseSharding( + ConfigureDistributedDatabaseShardingRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseShardingRequest, + ConfigureDistributedDatabaseShardingResponse> + handler); + + /** + * Creates a Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createDistributedDatabase( + CreateDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> + handler); + + /** + * Terminate the given Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteDistributedDatabase( + DeleteDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> + handler); + + /** + * Generate the wallet associated with Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + generateDistributedDatabaseWallet( + GenerateDistributedDatabaseWalletRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateDistributedDatabaseWalletRequest, + GenerateDistributedDatabaseWalletResponse> + handler); + + /** + * Gets the details of the Globally distributed database identified by given id. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getDistributedDatabase( + GetDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + handler); + + /** + * Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally + * distributed database is not RAFT based then empty response is returned from the API. + * + * @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 + getDistributedDatabaseRaftMetric( + GetDistributedDatabaseRaftMetricRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRaftMetricRequest, + GetDistributedDatabaseRaftMetricResponse> + handler); + + /** + * Operation to retrieve move RU invocation history and status for the Globally distributed + * database. Results are ordered by created timestamp in descending order. + * + * @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 + getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse> + handler); + + /** + * List of Globally distributed databases. + * + * @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 listDistributedDatabases( + ListDistributedDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> + handler); + + /** + * Move the replication units for RAFT based globally distributed database from source shard to + * destination shard. + * + * @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 + moveDistributedDatabaseReplicationUnit( + MoveDistributedDatabaseReplicationUnitRequest request, + com.oracle.bmc.responses.AsyncHandler< + MoveDistributedDatabaseReplicationUnitRequest, + MoveDistributedDatabaseReplicationUnitResponse> + handler); + + /** + * Patch operation to add, remove or update shards to the Globally distributed database + * topology. In single patch operation, multiple shards can be either added, or removed or + * updated. Combination of inserts, update and remove in single operation is not allowed. + * + * @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 patchDistributedDatabase( + PatchDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> + handler); + + /** + * Recreate the failed resource for the Globally Distributed Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + recreateFailedDistributedDatabaseResource( + RecreateFailedDistributedDatabaseResourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RecreateFailedDistributedDatabaseResourceRequest, + RecreateFailedDistributedDatabaseResourceResponse> + handler); + + /** + * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally + * distributed database. This operation will also remove GdsCtlNodes if present. + * + * @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 + rotateDistributedDatabasePasswords( + RotateDistributedDatabasePasswordsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RotateDistributedDatabasePasswordsRequest, + RotateDistributedDatabasePasswordsResponse> + handler); + + /** + * Scale global service manager(GSM aka shard manager) instances for the Globally distributed + * database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedDatabaseGsmsRequest, + ScaleDistributedDatabaseGsmsResponse> + handler); + + /** + * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future startDistributedDatabase( + StartDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> + handler); + + /** + * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future stopDistributedDatabase( + StopDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> + handler); + + /** + * Updates the configuration of the Globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateDistributedDatabase( + UpdateDistributedDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> + handler); + + /** + * Validate the network connectivity between components of the globally distributed database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + validateDistributedDatabaseNetwork( + ValidateDistributedDatabaseNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedDatabaseNetworkRequest, + ValidateDistributedDatabaseNetworkResponse> + handler); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java new file mode 100644 index 00000000000..8e458aab4a3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java @@ -0,0 +1,1161 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DistributedDbService service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbServiceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DistributedDbServiceAsync { + /** Service instance for DistributedDbService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbServiceAsyncClient.class); + + DistributedDbServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + DistributedDbServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "DistributedDbServiceAsyncClient", + "generateDistributedDatabaseWallet")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbServiceAsyncClient> { + private boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbServiceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbServiceAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future + addDistributedDatabaseGdsControlNode( + AddDistributedDatabaseGdsControlNodeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDistributedDatabaseGdsControlNodeRequest, + AddDistributedDatabaseGdsControlNodeResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getAddDistributedDatabaseGdsControlNodeDetails(), + "addDistributedDatabaseGdsControlNodeDetails is required"); + + return clientCall(request, AddDistributedDatabaseGdsControlNodeResponse::builder) + .logger(LOG, "addDistributedDatabaseGdsControlNode") + .serviceDetails( + "DistributedDbService", + "AddDistributedDatabaseGdsControlNode", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDistributedDatabaseGdsControlNodeRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("addGdsControlNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AddDistributedDatabaseGdsControlNodeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AddDistributedDatabaseGdsControlNodeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDistributedDatabaseCompartment( + ChangeDistributedDatabaseCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDatabaseCompartmentRequest, + ChangeDistributedDatabaseCompartmentResponse> + handler) { + Objects.requireNonNull( + request.getChangeDistributedDatabaseCompartmentDetails(), + "changeDistributedDatabaseCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ChangeDistributedDatabaseCompartmentResponse::builder) + .logger(LOG, "changeDistributedDatabaseCompartment") + .serviceDetails( + "DistributedDbService", + "ChangeDistributedDatabaseCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDatabaseCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDatabaseCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDatabaseCompartmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDistributedDbBackupConfig( + ChangeDistributedDbBackupConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDistributedDbBackupConfigRequest, + ChangeDistributedDbBackupConfigResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeDistributedDbBackupConfigDetails(), + "changeDistributedDbBackupConfigDetails is required"); + + return clientCall(request, ChangeDistributedDbBackupConfigResponse::builder) + .logger(LOG, "changeDistributedDbBackupConfig") + .serviceDetails( + "DistributedDbService", + "ChangeDistributedDbBackupConfig", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDbBackupConfigRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeDbBackupConfig") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDbBackupConfigResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDbBackupConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getConfigureDistributedDatabaseAutoResourceManagementDetails(), + "configureDistributedDatabaseAutoResourceManagementDetails is required"); + + return clientCall( + request, + ConfigureDistributedDatabaseAutoResourceManagementResponse::builder) + .logger(LOG, "configureDistributedDatabaseAutoResourceManagement") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseAutoResourceManagement", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseAutoResourceManagementRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureAutoResourceManagement") + .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.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails.class, + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder + ::distributedDatabaseAutoResourceManagementDetails) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedDatabaseGsms( + ConfigureDistributedDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseGsmsRequest, + ConfigureDistributedDatabaseGsmsResponse> + handler) { + Objects.requireNonNull( + request.getConfigureDistributedDatabaseGsmsDetails(), + "configureDistributedDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedDatabaseGsmsResponse::builder) + .logger(LOG, "configureDistributedDatabaseGsms") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseGsmsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + configureDistributedDatabaseSharding( + ConfigureDistributedDatabaseShardingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseShardingRequest, + ConfigureDistributedDatabaseShardingResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedDatabaseShardingResponse::builder) + .logger(LOG, "configureDistributedDatabaseSharding") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseSharding", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseShardingRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureSharding") + .appendQueryParam("isRebalanceRequired", request.getIsRebalanceRequired()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedDatabaseShardingResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseShardingResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createDistributedDatabase( + CreateDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> + handler) { + Objects.requireNonNull( + request.getCreateDistributedDatabaseDetails(), + "createDistributedDatabaseDetails is required"); + + return clientCall(request, CreateDistributedDatabaseResponse::builder) + .logger(LOG, "createDistributedDatabase") + .serviceDetails("DistributedDbService", "CreateDistributedDatabase", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + CreateDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateDistributedDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteDistributedDatabase( + DeleteDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, DeleteDistributedDatabaseResponse::builder) + .logger(LOG, "deleteDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "DeleteDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDistributedDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateDistributedDatabaseWallet( + GenerateDistributedDatabaseWalletRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateDistributedDatabaseWalletRequest, + GenerateDistributedDatabaseWalletResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getGenerateDistributedDatabaseWalletDetails(), + "generateDistributedDatabaseWalletDetails is required"); + + return clientCall(request, GenerateDistributedDatabaseWalletResponse::builder) + .logger(LOG, "generateDistributedDatabaseWallet") + .serviceDetails( + "DistributedDbService", + "GenerateDistributedDatabaseWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateDistributedDatabaseWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("generateWallet") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + java.io.InputStream.class, + GenerateDistributedDatabaseWalletResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GenerateDistributedDatabaseWalletResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateDistributedDatabaseWalletResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + GenerateDistributedDatabaseWalletResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + GenerateDistributedDatabaseWalletResponse.Builder::lastModified) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getDistributedDatabase( + GetDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseResponse::builder) + .logger(LOG, "getDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + GetDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-request-id", GetDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetDistributedDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedDatabaseRaftMetric( + GetDistributedDatabaseRaftMetricRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRaftMetricRequest, + GetDistributedDatabaseRaftMetricResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseRaftMetricResponse::builder) + .logger(LOG, "getDistributedDatabaseRaftMetric") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabaseRaftMetric", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRaftMetricRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("raftMetrics") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + .class, + GetDistributedDatabaseRaftMetricResponse.Builder + ::distributedDatabaseRaftMetric) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRaftMetricResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseRuChangeLogResponse::builder) + .logger(LOG, "getDistributedDatabaseRuChangeLog") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabaseRuChangeLog", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRuChangeLogRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("ruChangeLog") + .appendQueryParam("sourceShardName", request.getSourceShardName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + .class, + GetDistributedDatabaseRuChangeLogResponse.Builder + ::distributedDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listDistributedDatabases( + ListDistributedDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedDatabasesResponse::builder) + .logger(LOG, "listDistributedDatabases") + .serviceDetails( + "DistributedDbService", + "ListDistributedDatabases", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedDatabasesRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("privateEndpointId", request.getPrivateEndpointId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam( + "isAutoResourceManagementEnabled", + request.getIsAutoResourceManagementEnabled()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + .class, + ListDistributedDatabasesResponse.Builder::distributedDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", ListDistributedDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDistributedDatabasesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + moveDistributedDatabaseReplicationUnit( + MoveDistributedDatabaseReplicationUnitRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MoveDistributedDatabaseReplicationUnitRequest, + MoveDistributedDatabaseReplicationUnitResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getMoveDistributedDatabaseReplicationUnitDetails(), + "moveDistributedDatabaseReplicationUnitDetails is required"); + + return clientCall(request, MoveDistributedDatabaseReplicationUnitResponse::builder) + .logger(LOG, "moveDistributedDatabaseReplicationUnit") + .serviceDetails( + "DistributedDbService", + "MoveDistributedDatabaseReplicationUnit", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveDistributedDatabaseReplicationUnitRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("moveReplicationUnit") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + MoveDistributedDatabaseReplicationUnitResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + MoveDistributedDatabaseReplicationUnitResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future patchDistributedDatabase( + PatchDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedDatabaseDetails(), + "patchDistributedDatabaseDetails is required"); + + return clientCall(request, PatchDistributedDatabaseResponse::builder) + .logger(LOG, "patchDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "PatchDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", PatchDistributedDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + recreateFailedDistributedDatabaseResource( + RecreateFailedDistributedDatabaseResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RecreateFailedDistributedDatabaseResourceRequest, + RecreateFailedDistributedDatabaseResourceResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull(request.getResourceName(), "resourceName is required"); + + return clientCall(request, RecreateFailedDistributedDatabaseResourceResponse::builder) + .logger(LOG, "recreateFailedDistributedDatabaseResource") + .serviceDetails( + "DistributedDbService", + "RecreateFailedDistributedDatabaseResource", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RecreateFailedDistributedDatabaseResourceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("recreateFailedResource") + .appendQueryParam("resourceName", request.getResourceName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + RecreateFailedDistributedDatabaseResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RecreateFailedDistributedDatabaseResourceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + rotateDistributedDatabasePasswords( + RotateDistributedDatabasePasswordsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RotateDistributedDatabasePasswordsRequest, + RotateDistributedDatabasePasswordsResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getRotateDistributedDatabasePasswordsDetails(), + "rotateDistributedDatabasePasswordsDetails is required"); + + return clientCall(request, RotateDistributedDatabasePasswordsResponse::builder) + .logger(LOG, "rotateDistributedDatabasePasswords") + .serviceDetails( + "DistributedDbService", + "RotateDistributedDatabasePasswords", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RotateDistributedDatabasePasswordsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("rotateDbPasswords") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RotateDistributedDatabasePasswordsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RotateDistributedDatabasePasswordsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedDatabaseGsmsRequest, + ScaleDistributedDatabaseGsmsResponse> + handler) { + Objects.requireNonNull( + request.getScaleDistributedDatabaseGsmsDetails(), + "scaleDistributedDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ScaleDistributedDatabaseGsmsResponse::builder) + .logger(LOG, "scaleDistributedDatabaseGsms") + .serviceDetails( + "DistributedDbService", + "ScaleDistributedDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleDistributedDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scaleGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleDistributedDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScaleDistributedDatabaseGsmsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future startDistributedDatabase( + StartDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, StartDistributedDatabaseResponse::builder) + .logger(LOG, "startDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "StartDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("startDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + StartDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartDistributedDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future stopDistributedDatabase( + StopDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, StopDistributedDatabaseResponse::builder) + .logger(LOG, "stopDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "StopDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("stopDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + StopDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopDistributedDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateDistributedDatabase( + UpdateDistributedDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedDatabaseDetails(), + "updateDistributedDatabaseDetails is required"); + + return clientCall(request, UpdateDistributedDatabaseResponse::builder) + .logger(LOG, "updateDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "UpdateDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + UpdateDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-request-id", UpdateDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateDistributedDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + validateDistributedDatabaseNetwork( + ValidateDistributedDatabaseNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDistributedDatabaseNetworkRequest, + ValidateDistributedDatabaseNetworkResponse> + handler) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedDatabaseNetworkResponse::builder) + .logger(LOG, "validateDistributedDatabaseNetwork") + .serviceDetails( + "DistributedDbService", + "ValidateDistributedDatabaseNetwork", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedDatabaseNetworkRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateNetwork") + .appendQueryParam("isSurrogate", request.getIsSurrogate()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedDatabaseNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedDatabaseNetworkResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java new file mode 100644 index 00000000000..9c95a872d28 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java @@ -0,0 +1,1172 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbServiceClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements DistributedDbService { + /** Service instance for DistributedDbService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbServiceClient.class); + + private final DistributedDbServiceWaiters waiters; + + private final DistributedDbServicePaginators paginators; + + DistributedDbServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + DistributedDbServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DistributedDbService-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DistributedDbServiceWaiters(executorService, this); + + this.paginators = new DistributedDbServicePaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "DistributedDbServiceClient", "generateDistributedDatabaseWallet")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbServiceClient> { + private boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbServiceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbServiceClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( + AddDistributedDatabaseGdsControlNodeRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getAddDistributedDatabaseGdsControlNodeDetails(), + "addDistributedDatabaseGdsControlNodeDetails is required"); + + return clientCall(request, AddDistributedDatabaseGdsControlNodeResponse::builder) + .logger(LOG, "addDistributedDatabaseGdsControlNode") + .serviceDetails( + "DistributedDbService", + "AddDistributedDatabaseGdsControlNode", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDistributedDatabaseGdsControlNodeRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("addGdsControlNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AddDistributedDatabaseGdsControlNodeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AddDistributedDatabaseGdsControlNodeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartment( + ChangeDistributedDatabaseCompartmentRequest request) { + Objects.requireNonNull( + request.getChangeDistributedDatabaseCompartmentDetails(), + "changeDistributedDatabaseCompartmentDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ChangeDistributedDatabaseCompartmentResponse::builder) + .logger(LOG, "changeDistributedDatabaseCompartment") + .serviceDetails( + "DistributedDbService", + "ChangeDistributedDatabaseCompartment", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDatabaseCompartmentRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDatabaseCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDatabaseCompartmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( + ChangeDistributedDbBackupConfigRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeDistributedDbBackupConfigDetails(), + "changeDistributedDbBackupConfigDetails is required"); + + return clientCall(request, ChangeDistributedDbBackupConfigResponse::builder) + .logger(LOG, "changeDistributedDbBackupConfig") + .serviceDetails( + "DistributedDbService", + "ChangeDistributedDbBackupConfig", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDistributedDbBackupConfigRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeDbBackupConfig") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDistributedDbBackupConfigResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDistributedDbBackupConfigResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ConfigureDistributedDatabaseAutoResourceManagementResponse + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getConfigureDistributedDatabaseAutoResourceManagementDetails(), + "configureDistributedDatabaseAutoResourceManagementDetails is required"); + + return clientCall( + request, + ConfigureDistributedDatabaseAutoResourceManagementResponse::builder) + .logger(LOG, "configureDistributedDatabaseAutoResourceManagement") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseAutoResourceManagement", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseAutoResourceManagementRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureAutoResourceManagement") + .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.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails.class, + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder + ::distributedDatabaseAutoResourceManagementDetails) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + ConfigureDistributedDatabaseAutoResourceManagementResponse.Builder::etag) + .callSync(); + } + + @Override + public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( + ConfigureDistributedDatabaseGsmsRequest request) { + Objects.requireNonNull( + request.getConfigureDistributedDatabaseGsmsDetails(), + "configureDistributedDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedDatabaseGsmsResponse::builder) + .logger(LOG, "configureDistributedDatabaseGsms") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseGsmsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( + ConfigureDistributedDatabaseShardingRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ConfigureDistributedDatabaseShardingResponse::builder) + .logger(LOG, "configureDistributedDatabaseSharding") + .serviceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseSharding", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfigureDistributedDatabaseShardingRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("configureSharding") + .appendQueryParam("isRebalanceRequired", request.getIsRebalanceRequired()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ConfigureDistributedDatabaseShardingResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedDatabaseShardingResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateDistributedDatabaseResponse createDistributedDatabase( + CreateDistributedDatabaseRequest request) { + Objects.requireNonNull( + request.getCreateDistributedDatabaseDetails(), + "createDistributedDatabaseDetails is required"); + + return clientCall(request, CreateDistributedDatabaseResponse::builder) + .logger(LOG, "createDistributedDatabase") + .serviceDetails("DistributedDbService", "CreateDistributedDatabase", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + CreateDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateDistributedDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteDistributedDatabaseResponse deleteDistributedDatabase( + DeleteDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, DeleteDistributedDatabaseResponse::builder) + .logger(LOG, "deleteDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "DeleteDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDistributedDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( + GenerateDistributedDatabaseWalletRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getGenerateDistributedDatabaseWalletDetails(), + "generateDistributedDatabaseWalletDetails is required"); + + return clientCall(request, GenerateDistributedDatabaseWalletResponse::builder) + .logger(LOG, "generateDistributedDatabaseWallet") + .serviceDetails( + "DistributedDbService", + "GenerateDistributedDatabaseWallet", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateDistributedDatabaseWalletRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("generateWallet") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + GenerateDistributedDatabaseWalletResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GenerateDistributedDatabaseWalletResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateDistributedDatabaseWalletResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + GenerateDistributedDatabaseWalletResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + GenerateDistributedDatabaseWalletResponse.Builder::lastModified) + .callSync(); + } + + @Override + public GetDistributedDatabaseResponse getDistributedDatabase( + GetDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseResponse::builder) + .logger(LOG, "getDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + GetDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-request-id", GetDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetDistributedDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( + GetDistributedDatabaseRaftMetricRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseRaftMetricResponse::builder) + .logger(LOG, "getDistributedDatabaseRaftMetric") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabaseRaftMetric", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRaftMetricRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("raftMetrics") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + .class, + GetDistributedDatabaseRaftMetricResponse.Builder + ::distributedDatabaseRaftMetric) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRaftMetricResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, GetDistributedDatabaseRuChangeLogResponse::builder) + .logger(LOG, "getDistributedDatabaseRuChangeLog") + .serviceDetails( + "DistributedDbService", + "GetDistributedDatabaseRuChangeLog", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDistributedDatabaseRuChangeLogRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("ruChangeLog") + .appendQueryParam("sourceShardName", request.getSourceShardName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + .class, + GetDistributedDatabaseRuChangeLogResponse.Builder + ::distributedDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListDistributedDatabasesResponse listDistributedDatabases( + ListDistributedDatabasesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDistributedDatabasesResponse::builder) + .logger(LOG, "listDistributedDatabases") + .serviceDetails( + "DistributedDbService", + "ListDistributedDatabases", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDistributedDatabasesRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("privateEndpointId", request.getPrivateEndpointId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam( + "isAutoResourceManagementEnabled", + request.getIsAutoResourceManagementEnabled()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("metadata", request.getMetadata()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + .class, + ListDistributedDatabasesResponse.Builder::distributedDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", ListDistributedDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDistributedDatabasesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( + MoveDistributedDatabaseReplicationUnitRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getMoveDistributedDatabaseReplicationUnitDetails(), + "moveDistributedDatabaseReplicationUnitDetails is required"); + + return clientCall(request, MoveDistributedDatabaseReplicationUnitResponse::builder) + .logger(LOG, "moveDistributedDatabaseReplicationUnit") + .serviceDetails( + "DistributedDbService", + "MoveDistributedDatabaseReplicationUnit", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveDistributedDatabaseReplicationUnitRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("moveReplicationUnit") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + MoveDistributedDatabaseReplicationUnitResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + MoveDistributedDatabaseReplicationUnitResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public PatchDistributedDatabaseResponse patchDistributedDatabase( + PatchDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getPatchDistributedDatabaseDetails(), + "patchDistributedDatabaseDetails is required"); + + return clientCall(request, PatchDistributedDatabaseResponse::builder) + .logger(LOG, "patchDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "PatchDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", PatchDistributedDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RecreateFailedDistributedDatabaseResourceResponse + recreateFailedDistributedDatabaseResource( + RecreateFailedDistributedDatabaseResourceRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull(request.getResourceName(), "resourceName is required"); + + return clientCall(request, RecreateFailedDistributedDatabaseResourceResponse::builder) + .logger(LOG, "recreateFailedDistributedDatabaseResource") + .serviceDetails( + "DistributedDbService", + "RecreateFailedDistributedDatabaseResource", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RecreateFailedDistributedDatabaseResourceRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("recreateFailedResource") + .appendQueryParam("resourceName", request.getResourceName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + RecreateFailedDistributedDatabaseResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RecreateFailedDistributedDatabaseResourceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( + RotateDistributedDatabasePasswordsRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getRotateDistributedDatabasePasswordsDetails(), + "rotateDistributedDatabasePasswordsDetails is required"); + + return clientCall(request, RotateDistributedDatabasePasswordsResponse::builder) + .logger(LOG, "rotateDistributedDatabasePasswords") + .serviceDetails( + "DistributedDbService", + "RotateDistributedDatabasePasswords", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RotateDistributedDatabasePasswordsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("rotateDbPasswords") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RotateDistributedDatabasePasswordsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RotateDistributedDatabasePasswordsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request) { + Objects.requireNonNull( + request.getScaleDistributedDatabaseGsmsDetails(), + "scaleDistributedDatabaseGsmsDetails is required"); + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ScaleDistributedDatabaseGsmsResponse::builder) + .logger(LOG, "scaleDistributedDatabaseGsms") + .serviceDetails( + "DistributedDbService", + "ScaleDistributedDatabaseGsms", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleDistributedDatabaseGsmsRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scaleGsms") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleDistributedDatabaseGsmsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScaleDistributedDatabaseGsmsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StartDistributedDatabaseResponse startDistributedDatabase( + StartDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, StartDistributedDatabaseResponse::builder) + .logger(LOG, "startDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "StartDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("startDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + StartDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartDistributedDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StopDistributedDatabaseResponse stopDistributedDatabase( + StopDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, StopDistributedDatabaseResponse::builder) + .logger(LOG, "stopDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "StopDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("stopDatabase") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + StopDistributedDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopDistributedDatabaseResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDistributedDatabaseResponse updateDistributedDatabase( + UpdateDistributedDatabaseRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateDistributedDatabaseDetails(), + "updateDistributedDatabaseDetails is required"); + + return clientCall(request, UpdateDistributedDatabaseResponse::builder) + .logger(LOG, "updateDistributedDatabase") + .serviceDetails( + "DistributedDbService", + "UpdateDistributedDatabase", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDistributedDatabaseRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.class, + UpdateDistributedDatabaseResponse.Builder::distributedDatabase) + .handleResponseHeaderString( + "opc-request-id", UpdateDistributedDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateDistributedDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( + ValidateDistributedDatabaseNetworkRequest request) { + + Validate.notBlank( + request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + + return clientCall(request, ValidateDistributedDatabaseNetworkResponse::builder) + .logger(LOG, "validateDistributedDatabaseNetwork") + .serviceDetails( + "DistributedDbService", + "ValidateDistributedDatabaseNetwork", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDistributedDatabaseNetworkRequest::builder) + .basePath("/20260101") + .appendPathParam("distributedDatabases") + .appendPathParam(request.getDistributedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("validateNetwork") + .appendQueryParam("isSurrogate", request.getIsSurrogate()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ValidateDistributedDatabaseNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ValidateDistributedDatabaseNetworkResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DistributedDbServiceWaiters getWaiters() { + return waiters; + } + + @Override + public DistributedDbServicePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java new file mode 100644 index 00000000000..00f1090285f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java @@ -0,0 +1,169 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DistributedDbService where multiple pages of data may be fetched. Two + * styles of iteration are supported: + * + *

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

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

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbServiceWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DistributedDbService client; + + public DistributedDbServiceWaiters( + java.util.concurrent.ExecutorService executorService, DistributedDbService client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + forDistributedDatabase( + GetDistributedDatabaseRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.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 forDistributedDatabase( + 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< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + forDistributedDatabase( + GetDistributedDatabaseRequest request, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.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 forDistributedDatabase( + 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< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + forDistributedDatabase( + GetDistributedDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.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 forDistributedDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DistributedDatabase. + private com.oracle.bmc.waiter.Waiter< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> + forDistributedDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDistributedDatabaseRequest request, + final com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + .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< + GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>() { + @Override + public GetDistributedDatabaseResponse apply( + GetDistributedDatabaseRequest request) { + return client.getDistributedDatabase(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDistributedDatabaseResponse response) { + return targetStatesSet.contains( + response.getDistributedDatabase().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + .LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java new file mode 100644 index 00000000000..887316c3f38 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the + * operations by default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbWorkRequestService extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

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

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

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

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

Example: Click here to see how to use ListWorkRequests + * API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DistributedDbWorkRequestServiceWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + DistributedDbWorkRequestServicePaginators getPaginators(); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java new file mode 100644 index 00000000000..55fb3791198 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java @@ -0,0 +1,126 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Use the Globally Distributed Database service APIs to create and manage the Globally distributed + * databases. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets details of the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java new file mode 100644 index 00000000000..8856b80eb44 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java @@ -0,0 +1,406 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DistributedDbWorkRequestService service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbWorkRequestServiceAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DistributedDbWorkRequestServiceAsync { + /** Service instance for DistributedDbWorkRequestService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceAsyncClient.class); + + DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbWorkRequestServiceAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbWorkRequestServiceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbWorkRequestServiceAsyncClient( + this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails( + "DistributedDbWorkRequestService", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + .class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + .class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java new file mode 100644 index 00000000000..b7b542ec7bb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java @@ -0,0 +1,478 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbWorkRequestServiceClient + extends com.oracle.bmc.http.internal.BaseSyncClient + implements DistributedDbWorkRequestService { + /** Service instance for DistributedDbWorkRequestService. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceClient.class); + + private final DistributedDbWorkRequestServiceWaiters waiters; + + private final DistributedDbWorkRequestServicePaginators paginators; + + DistributedDbWorkRequestServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("DistributedDbWorkRequestService-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DistributedDbWorkRequestServiceWaiters(executorService, this); + + this.paginators = new DistributedDbWorkRequestServicePaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DistributedDbWorkRequestServiceClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "distributeddatabasev26"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DistributedDbWorkRequestServiceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DistributedDbWorkRequestServiceClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails( + "DistributedDbWorkRequestService", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + .class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails( + "DistributedDbWorkRequestService", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260101") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + .class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public DistributedDbWorkRequestServiceWaiters getWaiters() { + return waiters; + } + + @Override + public DistributedDbWorkRequestServicePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DistributedDbWorkRequestServiceClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java new file mode 100644 index 00000000000..7748a8360ed --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java @@ -0,0 +1,408 @@ +/** + * 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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DistributedDbWorkRequestService where multiple pages of data may be + * fetched. Two styles of iteration are supported: + * + *

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

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbWorkRequestServicePaginators { + private final DistributedDbWorkRequestService client; + + public DistributedDbWorkRequestServicePaginators(DistributedDbWorkRequestService client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestError} objects contained in responses + * from the listWorkRequestErrors operation. This iterable will fetch more data from the server + * as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestError} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List< + com.oracle.bmc.distributeddatabasev26.model.WorkRequestError>>() { + @Override + public java.util.List< + com.oracle.bmc.distributeddatabasev26.model.WorkRequestError> + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry} objects contained in + * responses from the listWorkRequestLogs operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List< + com.oracle.bmc.distributeddatabasev26.model + .WorkRequestLogEntry>>() { + @Override + public java.util.List< + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry> + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary} objects contained in + * responses from the listWorkRequests operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, + ListWorkRequestsRequest, + ListWorkRequestsResponse, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List< + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary> + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java new file mode 100644 index 00000000000..c48cfbd1567 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.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.distributeddatabasev26; + +import com.oracle.bmc.distributeddatabasev26.requests.*; +import com.oracle.bmc.distributeddatabasev26.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DistributedDbWorkRequestService. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DistributedDbWorkRequestServiceWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DistributedDbWorkRequestService client; + + public DistributedDbWorkRequestServiceWaiters( + java.util.concurrent.ExecutorService executorService, + DistributedDbWorkRequestService client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java new file mode 100644 index 00000000000..8167496fbcd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java @@ -0,0 +1,56 @@ +/** + * 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.distributeddatabasev26.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java new file mode 100644 index 00000000000..8e85821f073 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details required to create a new Global database services control(GDS CTL) compute node.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddDistributedAutonomousDatabaseGdsControlNodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddDistributedAutonomousDatabaseGdsControlNodeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"publicSshKey", "subnetId"}) + public AddDistributedAutonomousDatabaseGdsControlNodeDetails( + String publicSshKey, String subnetId) { + super(); + this.publicSshKey = publicSshKey; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The public sshKey for Global database services control(GDS CTL) node. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") + private String publicSshKey; + + /** + * The public sshKey for Global database services control(GDS CTL) node. + * + * @param publicSshKey the value to set + * @return this builder + */ + public Builder publicSshKey(String publicSshKey) { + this.publicSshKey = publicSshKey; + this.__explicitlySet__.add("publicSshKey"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddDistributedAutonomousDatabaseGdsControlNodeDetails build() { + AddDistributedAutonomousDatabaseGdsControlNodeDetails model = + new AddDistributedAutonomousDatabaseGdsControlNodeDetails( + this.publicSshKey, this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddDistributedAutonomousDatabaseGdsControlNodeDetails model) { + if (model.wasPropertyExplicitlySet("publicSshKey")) { + this.publicSshKey(model.getPublicSshKey()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The public sshKey for Global database services control(GDS CTL) node. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") + private final String publicSshKey; + + /** + * The public sshKey for Global database services control(GDS CTL) node. + * + * @return the value + */ + public String getPublicSshKey() { + return publicSshKey; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddDistributedAutonomousDatabaseGdsControlNodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("publicSshKey=").append(String.valueOf(this.publicSshKey)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeDetails)) { + return false; + } + + AddDistributedAutonomousDatabaseGdsControlNodeDetails other = + (AddDistributedAutonomousDatabaseGdsControlNodeDetails) o; + return java.util.Objects.equals(this.publicSshKey, other.publicSshKey) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.publicSshKey == null ? 43 : this.publicSshKey.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java new file mode 100644 index 00000000000..f7488aa0a42 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java @@ -0,0 +1,180 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a new Global database services control(GDS CTL) compute node.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddDistributedDatabaseGdsControlNodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddDistributedDatabaseGdsControlNodeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"publicSshKey", "subnetId"}) + public AddDistributedDatabaseGdsControlNodeDetails(String publicSshKey, String subnetId) { + super(); + this.publicSshKey = publicSshKey; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The public sshKey for Global database services control(GDS CTL) node. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") + private String publicSshKey; + + /** + * The public sshKey for Global database services control(GDS CTL) node. + * + * @param publicSshKey the value to set + * @return this builder + */ + public Builder publicSshKey(String publicSshKey) { + this.publicSshKey = publicSshKey; + this.__explicitlySet__.add("publicSshKey"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddDistributedDatabaseGdsControlNodeDetails build() { + AddDistributedDatabaseGdsControlNodeDetails model = + new AddDistributedDatabaseGdsControlNodeDetails( + this.publicSshKey, this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddDistributedDatabaseGdsControlNodeDetails model) { + if (model.wasPropertyExplicitlySet("publicSshKey")) { + this.publicSshKey(model.getPublicSshKey()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The public sshKey for Global database services control(GDS CTL) node. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") + private final String publicSshKey; + + /** + * The public sshKey for Global database services control(GDS CTL) node. + * + * @return the value + */ + public String getPublicSshKey() { + return publicSshKey; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet on which the Global database services control(GDS CTL) node should be created. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddDistributedDatabaseGdsControlNodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("publicSshKey=").append(String.valueOf(this.publicSshKey)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedDatabaseGdsControlNodeDetails)) { + return false; + } + + AddDistributedDatabaseGdsControlNodeDetails other = + (AddDistributedDatabaseGdsControlNodeDetails) o; + return java.util.Objects.equals(this.publicSshKey, other.publicSshKey) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.publicSshKey == null ? 43 : this.publicSshKey.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java new file mode 100644 index 00000000000..1834c714303 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.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.distributeddatabasev26.model; + +/** + * Automatic resource management configuration details for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutoResourceManagementConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutoResourceManagementConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "coolOffPeriodInMinutes", + "maxMoveRuAttempts", + "maxMoveRuUnit", + "mode", + "actionType", + "notificationTopicIds", + "streamIds" + }) + public AutoResourceManagementConfigurationDetails( + Boolean isEnabled, + Integer coolOffPeriodInMinutes, + Integer maxMoveRuAttempts, + MaxMoveRuUnit maxMoveRuUnit, + Mode mode, + ActionType actionType, + java.util.List notificationTopicIds, + java.util.List streamIds) { + super(); + this.isEnabled = isEnabled; + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.maxMoveRuUnit = maxMoveRuUnit; + this.mode = mode; + this.actionType = actionType; + this.notificationTopicIds = notificationTopicIds; + this.streamIds = streamIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @param coolOffPeriodInMinutes the value to set + * @return this builder + */ + public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.__explicitlySet__.add("coolOffPeriodInMinutes"); + return this; + } + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @param maxMoveRuAttempts the value to set + * @return this builder + */ + public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.__explicitlySet__.add("maxMoveRuAttempts"); + return this; + } + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @param maxMoveRuUnit the value to set + * @return this builder + */ + public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { + this.maxMoveRuUnit = maxMoveRuUnit; + this.__explicitlySet__.add("maxMoveRuUnit"); + return this; + } + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @param mode the value to set + * @return this builder + */ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + * + * @param streamIds the value to set + * @return this builder + */ + public Builder streamIds(java.util.List streamIds) { + this.streamIds = streamIds; + this.__explicitlySet__.add("streamIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutoResourceManagementConfigurationDetails build() { + AutoResourceManagementConfigurationDetails model = + new AutoResourceManagementConfigurationDetails( + this.isEnabled, + this.coolOffPeriodInMinutes, + this.maxMoveRuAttempts, + this.maxMoveRuUnit, + this.mode, + this.actionType, + this.notificationTopicIds, + this.streamIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutoResourceManagementConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { + this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { + this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { + this.maxMoveRuUnit(model.getMaxMoveRuUnit()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("streamIds")) { + this.streamIds(model.getStreamIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Time period to wait for the database to get stable after autoResourceManagement event. */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private final Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @return the value + */ + public Integer getCoolOffPeriodInMinutes() { + return coolOffPeriodInMinutes; + } + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private final Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @return the value + */ + public Integer getMaxMoveRuAttempts() { + return maxMoveRuAttempts; + } + + /** Time unit applicable to maxMoveRuAttempts. */ + public enum MaxMoveRuUnit implements com.oracle.bmc.http.internal.BmcEnum { + Hour("HOUR"), + Day("DAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaxMoveRuUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaxMoveRuUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private final MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @return the value + */ + public MaxMoveRuUnit getMaxMoveRuUnit() { + return maxMoveRuUnit; + } + + /** Mode of autoResourceManagement execution. */ + public enum Mode implements com.oracle.bmc.http.internal.BmcEnum { + Automatic("AUTOMATIC"), + Recommendation("RECOMMENDATION"), + + /** + * 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(Mode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @return the value + */ + public Mode getMode() { + return mode; + } + + /** The action that will be taken when autoResourceManagement is triggered. */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Move("MOVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private final java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + * + * @return the value + */ + public java.util.List getStreamIds() { + return streamIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutoResourceManagementConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); + sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); + sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", streamIds=").append(String.valueOf(this.streamIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutoResourceManagementConfigurationDetails)) { + return false; + } + + AutoResourceManagementConfigurationDetails other = + (AutoResourceManagementConfigurationDetails) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) + && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) + && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.streamIds, other.streamIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.coolOffPeriodInMinutes == null + ? 43 + : this.coolOffPeriodInMinutes.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java new file mode 100644 index 00000000000..d716cc7a5bd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java @@ -0,0 +1,255 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Composite data guard shard space details for a Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousCompositeDataGuardShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousCompositeDataGuardShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "originalReplica", + "dataGuardReplicas" + }) + public AutonomousCompositeDataGuardShardSpace( + String name, + Integer chunkCount, + AutonomousCompositeDataGuardShardSpaceReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private AutonomousCompositeDataGuardShardSpaceReplica originalReplica; + + public Builder originalReplica( + AutonomousCompositeDataGuardShardSpaceReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica associated with the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replica associated with the shard. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousCompositeDataGuardShardSpace build() { + AutonomousCompositeDataGuardShardSpace model = + new AutonomousCompositeDataGuardShardSpace( + this.name, + this.chunkCount, + this.originalReplica, + this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousCompositeDataGuardShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final AutonomousCompositeDataGuardShardSpaceReplica originalReplica; + + public AutonomousCompositeDataGuardShardSpaceReplica getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica associated with the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replica associated with the shard. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousCompositeDataGuardShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousCompositeDataGuardShardSpace)) { + return false; + } + + AutonomousCompositeDataGuardShardSpace other = (AutonomousCompositeDataGuardShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java new file mode 100644 index 00000000000..4dd34233c0b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Globally distributed database composite data guard replica details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousCompositeDataGuardShardSpaceReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousCompositeDataGuardShardSpaceReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public AutonomousCompositeDataGuardShardSpaceReplica( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousCompositeDataGuardShardSpaceReplica build() { + AutonomousCompositeDataGuardShardSpaceReplica model = + new AutonomousCompositeDataGuardShardSpaceReplica(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousCompositeDataGuardShardSpaceReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousCompositeDataGuardShardSpaceReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousCompositeDataGuardShardSpaceReplica)) { + return false; + } + + AutonomousCompositeDataGuardShardSpaceReplica other = + (AutonomousCompositeDataGuardShardSpaceReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java new file mode 100644 index 00000000000..58754393e45 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Composite raft shard space details for a Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousCompositeRaftShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousCompositeRaftShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "replicationUnitCount", + "raftClusters" + }) + public AutonomousCompositeRaftShardSpace( + String name, + Integer chunkCount, + Integer replicationUnitCount, + java.util.List raftClusters) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.replicationUnitCount = replicationUnitCount; + this.raftClusters = raftClusters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @param replicationUnitCount the value to set + * @return this builder + */ + public Builder replicationUnitCount(Integer replicationUnitCount) { + this.replicationUnitCount = replicationUnitCount; + this.__explicitlySet__.add("replicationUnitCount"); + return this; + } + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @param raftClusters the value to set + * @return this builder + */ + public Builder raftClusters( + java.util.List raftClusters) { + this.raftClusters = raftClusters; + this.__explicitlySet__.add("raftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousCompositeRaftShardSpace build() { + AutonomousCompositeRaftShardSpace model = + new AutonomousCompositeRaftShardSpace( + this.name, + this.chunkCount, + this.replicationUnitCount, + this.raftClusters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousCompositeRaftShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("replicationUnitCount")) { + this.replicationUnitCount(model.getReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("raftClusters")) { + this.raftClusters(model.getRaftClusters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private final Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @return the value + */ + public Integer getReplicationUnitCount() { + return replicationUnitCount; + } + + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private final java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @return the value + */ + public java.util.List getRaftClusters() { + return raftClusters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousCompositeRaftShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); + sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousCompositeRaftShardSpace)) { + return false; + } + + AutonomousCompositeRaftShardSpace other = (AutonomousCompositeRaftShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) + && java.util.Objects.equals(this.raftClusters, other.raftClusters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.replicationUnitCount == null + ? 43 + : this.replicationUnitCount.hashCode()); + result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java new file mode 100644 index 00000000000..116641090ce --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java @@ -0,0 +1,348 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Raft cluster details for composite shard spaces.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousCompositeShardSpaceRaftCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousCompositeShardSpaceRaftCluster + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public AutonomousCompositeShardSpaceRaftCluster( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousCompositeShardSpaceRaftCluster build() { + AutonomousCompositeShardSpaceRaftCluster model = + new AutonomousCompositeShardSpaceRaftCluster( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousCompositeShardSpaceRaftCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + + /** + * 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(RuMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousCompositeShardSpaceRaftCluster("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousCompositeShardSpaceRaftCluster)) { + return false; + } + + AutonomousCompositeShardSpaceRaftCluster other = + (AutonomousCompositeShardSpaceRaftCluster) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java new file mode 100644 index 00000000000..e046c9c9f53 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java @@ -0,0 +1,166 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * System data guard shard database details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousSystemDataGuardDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousSystemDataGuardDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public AutonomousSystemDataGuardDatabase( + AutonomousSystemDataGuardReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private AutonomousSystemDataGuardReplica originalReplica; + + public Builder originalReplica(AutonomousSystemDataGuardReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The system data guard replica details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The system data guard replica details. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousSystemDataGuardDatabase build() { + AutonomousSystemDataGuardDatabase model = + new AutonomousSystemDataGuardDatabase( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousSystemDataGuardDatabase model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final AutonomousSystemDataGuardReplica originalReplica; + + public AutonomousSystemDataGuardReplica getOriginalReplica() { + return originalReplica; + } + + /** The system data guard replica details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The system data guard replica details. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousSystemDataGuardDatabase("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousSystemDataGuardDatabase)) { + return false; + } + + AutonomousSystemDataGuardDatabase other = (AutonomousSystemDataGuardDatabase) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java new file mode 100644 index 00000000000..de35758b2ef --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java @@ -0,0 +1,180 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * System data guard replica details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousSystemDataGuardReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousSystemDataGuardReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public AutonomousSystemDataGuardReplica( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousSystemDataGuardReplica build() { + AutonomousSystemDataGuardReplica model = + new AutonomousSystemDataGuardReplica(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousSystemDataGuardReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousSystemDataGuardReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousSystemDataGuardReplica)) { + return false; + } + + AutonomousSystemDataGuardReplica other = (AutonomousSystemDataGuardReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java new file mode 100644 index 00000000000..da7cf70edbb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.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.distributeddatabasev26.model; + +/** + * Details required to create system raft cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousSystemRaftCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousSystemRaftCluster + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public AutonomousSystemRaftCluster( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousSystemRaftCluster build() { + AutonomousSystemRaftCluster model = + new AutonomousSystemRaftCluster( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousSystemRaftCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + + /** + * 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(RuMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousSystemRaftCluster("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousSystemRaftCluster)) { + return false; + } + + AutonomousSystemRaftCluster other = (AutonomousSystemRaftCluster) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java new file mode 100644 index 00000000000..7b24de72117 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Distributed autonomous database user shard space details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousUserShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousUserShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) + public AutonomousUserShardSpace( + String name, + AutonomousUserShardSpaceReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private AutonomousUserShardSpaceReplica originalReplica; + + public Builder originalReplica(AutonomousUserShardSpaceReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** Details of data guard replicas for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * Details of data guard replicas for the user shard space. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousUserShardSpace build() { + AutonomousUserShardSpace model = + new AutonomousUserShardSpace( + this.name, this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousUserShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + 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 user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final AutonomousUserShardSpaceReplica originalReplica; + + public AutonomousUserShardSpaceReplica getOriginalReplica() { + return originalReplica; + } + + /** Details of data guard replicas for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * Details of data guard replicas for the user shard space. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousUserShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousUserShardSpace)) { + return false; + } + + AutonomousUserShardSpace other = (AutonomousUserShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java new file mode 100644 index 00000000000..7b27e9af20c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java @@ -0,0 +1,167 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * User shard space replica details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousUserShardSpaceReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousUserShardSpaceReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public AutonomousUserShardSpaceReplica( + String name, DistributedAutonomousDatabaseShardDatabase database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private DistributedAutonomousDatabaseShardDatabase database; + + public Builder database(DistributedAutonomousDatabaseShardDatabase database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousUserShardSpaceReplica build() { + AutonomousUserShardSpaceReplica model = + new AutonomousUserShardSpaceReplica(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousUserShardSpaceReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final DistributedAutonomousDatabaseShardDatabase database; + + public DistributedAutonomousDatabaseShardDatabase getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousUserShardSpaceReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousUserShardSpaceReplica)) { + return false; + } + + AutonomousUserShardSpaceReplica other = (AutonomousUserShardSpaceReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java new file mode 100644 index 00000000000..32c8975934d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.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.distributeddatabasev26.model; + +/** + * The configuration details for moving the resource for Globally distributed autonomous database to + * other compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDistributedAutonomousDatabaseCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDistributedAutonomousDatabaseCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDistributedAutonomousDatabaseCompartmentDetails build() { + ChangeDistributedAutonomousDatabaseCompartmentDetails model = + new ChangeDistributedAutonomousDatabaseCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDistributedAutonomousDatabaseCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentDetails)) { + return false; + } + + ChangeDistributedAutonomousDatabaseCompartmentDetails other = + (ChangeDistributedAutonomousDatabaseCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java new file mode 100644 index 00000000000..d9cecd47644 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details of the DbBackupConfig to be updated for the Globally distributed autonomous database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDistributedAutonomousDbBackupConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDistributedAutonomousDbBackupConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dbBackupConfig"}) + public ChangeDistributedAutonomousDbBackupConfigDetails( + DistributedAutonomousDbBackupConfig dbBackupConfig) { + super(); + this.dbBackupConfig = dbBackupConfig; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedAutonomousDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDistributedAutonomousDbBackupConfigDetails build() { + ChangeDistributedAutonomousDbBackupConfigDetails model = + new ChangeDistributedAutonomousDbBackupConfigDetails(this.dbBackupConfig); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDistributedAutonomousDbBackupConfigDetails model) { + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedAutonomousDbBackupConfig dbBackupConfig; + + public DistributedAutonomousDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDistributedAutonomousDbBackupConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigDetails)) { + return false; + } + + ChangeDistributedAutonomousDbBackupConfigDetails other = + (ChangeDistributedAutonomousDbBackupConfigDetails) o; + return java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java new file mode 100644 index 00000000000..5eda8bb876b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.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.distributeddatabasev26.model; + +/** + * The configuration details for moving the resource for Globally distributed database to other + * compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDistributedDatabaseCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDistributedDatabaseCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDistributedDatabaseCompartmentDetails build() { + ChangeDistributedDatabaseCompartmentDetails model = + new ChangeDistributedDatabaseCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDistributedDatabaseCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDistributedDatabaseCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabaseCompartmentDetails)) { + return false; + } + + ChangeDistributedDatabaseCompartmentDetails other = + (ChangeDistributedDatabaseCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java new file mode 100644 index 00000000000..eb2e8063685 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.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.distributeddatabasev26.model; + +/** + * The configuration details for moving the resource for private endpoint to other compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDistributedDatabasePrivateEndpointCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDistributedDatabasePrivateEndpointCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDistributedDatabasePrivateEndpointCompartmentDetails build() { + ChangeDistributedDatabasePrivateEndpointCompartmentDetails model = + new ChangeDistributedDatabasePrivateEndpointCompartmentDetails( + this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to move the resource to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDistributedDatabasePrivateEndpointCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentDetails)) { + return false; + } + + ChangeDistributedDatabasePrivateEndpointCompartmentDetails other = + (ChangeDistributedDatabasePrivateEndpointCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java new file mode 100644 index 00000000000..1756a3280ea --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java @@ -0,0 +1,125 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of the DbBackupConfig to be updated for the Globally distreibuted database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDistributedDbBackupConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDistributedDbBackupConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dbBackupConfig"}) + public ChangeDistributedDbBackupConfigDetails(DistributedDbBackupConfig dbBackupConfig) { + super(); + this.dbBackupConfig = dbBackupConfig; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDistributedDbBackupConfigDetails build() { + ChangeDistributedDbBackupConfigDetails model = + new ChangeDistributedDbBackupConfigDetails(this.dbBackupConfig); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDistributedDbBackupConfigDetails model) { + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedDbBackupConfig dbBackupConfig; + + public DistributedDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDistributedDbBackupConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDbBackupConfigDetails)) { + return false; + } + + ChangeDistributedDbBackupConfigDetails other = (ChangeDistributedDbBackupConfigDetails) o; + return java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java new file mode 100644 index 00000000000..631844625db --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java @@ -0,0 +1,254 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed database composite data guard shard space details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CompositeDataGuardShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CompositeDataGuardShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "originalReplica", + "dataGuardReplicas" + }) + public CompositeDataGuardShardSpace( + String name, + Integer chunkCount, + CompositeDataGuardShardSpaceReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CompositeDataGuardShardSpaceReplica originalReplica; + + public Builder originalReplica(CompositeDataGuardShardSpaceReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica associated with the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replica associated with the shard. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CompositeDataGuardShardSpace build() { + CompositeDataGuardShardSpace model = + new CompositeDataGuardShardSpace( + this.name, + this.chunkCount, + this.originalReplica, + this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CompositeDataGuardShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CompositeDataGuardShardSpaceReplica originalReplica; + + public CompositeDataGuardShardSpaceReplica getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica associated with the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replica associated with the shard. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CompositeDataGuardShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CompositeDataGuardShardSpace)) { + return false; + } + + CompositeDataGuardShardSpace other = (CompositeDataGuardShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java new file mode 100644 index 00000000000..7177ad71798 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Globally distributed database composite data guard replica details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CompositeDataGuardShardSpaceReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CompositeDataGuardShardSpaceReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public CompositeDataGuardShardSpaceReplica( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases(java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CompositeDataGuardShardSpaceReplica build() { + CompositeDataGuardShardSpaceReplica model = + new CompositeDataGuardShardSpaceReplica(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CompositeDataGuardShardSpaceReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CompositeDataGuardShardSpaceReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CompositeDataGuardShardSpaceReplica)) { + return false; + } + + CompositeDataGuardShardSpaceReplica other = (CompositeDataGuardShardSpaceReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java new file mode 100644 index 00000000000..067ffc7459e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Globally distributed database composite raft shard space.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CompositeRaftShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CompositeRaftShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "replicationUnitCount", + "raftClusters" + }) + public CompositeRaftShardSpace( + String name, + Integer chunkCount, + Integer replicationUnitCount, + java.util.List raftClusters) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.replicationUnitCount = replicationUnitCount; + this.raftClusters = raftClusters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @param replicationUnitCount the value to set + * @return this builder + */ + public Builder replicationUnitCount(Integer replicationUnitCount) { + this.replicationUnitCount = replicationUnitCount; + this.__explicitlySet__.add("replicationUnitCount"); + return this; + } + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @param raftClusters the value to set + * @return this builder + */ + public Builder raftClusters(java.util.List raftClusters) { + this.raftClusters = raftClusters; + this.__explicitlySet__.add("raftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CompositeRaftShardSpace build() { + CompositeRaftShardSpace model = + new CompositeRaftShardSpace( + this.name, + this.chunkCount, + this.replicationUnitCount, + this.raftClusters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CompositeRaftShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("replicationUnitCount")) { + this.replicationUnitCount(model.getReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("raftClusters")) { + this.raftClusters(model.getRaftClusters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private final Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @return the value + */ + public Integer getReplicationUnitCount() { + return replicationUnitCount; + } + + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private final java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @return the value + */ + public java.util.List getRaftClusters() { + return raftClusters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CompositeRaftShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); + sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CompositeRaftShardSpace)) { + return false; + } + + CompositeRaftShardSpace other = (CompositeRaftShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) + && java.util.Objects.equals(this.raftClusters, other.raftClusters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.replicationUnitCount == null + ? 43 + : this.replicationUnitCount.hashCode()); + result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java new file mode 100644 index 00000000000..4c7656b5fba --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java @@ -0,0 +1,346 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Raft clusters details for composite shard spaces.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CompositeShardSpaceRaftCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CompositeShardSpaceRaftCluster + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public CompositeShardSpaceRaftCluster( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases(java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CompositeShardSpaceRaftCluster build() { + CompositeShardSpaceRaftCluster model = + new CompositeShardSpaceRaftCluster( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CompositeShardSpaceRaftCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + + /** + * 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(RuMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CompositeShardSpaceRaftCluster("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CompositeShardSpaceRaftCluster)) { + return false; + } + + CompositeShardSpaceRaftCluster other = (CompositeShardSpaceRaftCluster) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java new file mode 100644 index 00000000000..2ab18833358 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java @@ -0,0 +1,553 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Automatic resource management configuration details for the Globally distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "coolOffPeriodInMinutes", + "maxMoveRuAttempts", + "maxMoveRuUnit", + "mode", + "actionType", + "notificationTopicIds", + "streamIds" + }) + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails( + Boolean isEnabled, + Integer coolOffPeriodInMinutes, + Integer maxMoveRuAttempts, + MaxMoveRuUnit maxMoveRuUnit, + Mode mode, + ActionType actionType, + java.util.List notificationTopicIds, + java.util.List streamIds) { + super(); + this.isEnabled = isEnabled; + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.maxMoveRuUnit = maxMoveRuUnit; + this.mode = mode; + this.actionType = actionType; + this.notificationTopicIds = notificationTopicIds; + this.streamIds = streamIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @param coolOffPeriodInMinutes the value to set + * @return this builder + */ + public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.__explicitlySet__.add("coolOffPeriodInMinutes"); + return this; + } + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @param maxMoveRuAttempts the value to set + * @return this builder + */ + public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.__explicitlySet__.add("maxMoveRuAttempts"); + return this; + } + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @param maxMoveRuUnit the value to set + * @return this builder + */ + public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { + this.maxMoveRuUnit = maxMoveRuUnit; + this.__explicitlySet__.add("maxMoveRuUnit"); + return this; + } + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @param mode the value to set + * @return this builder + */ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + * + * @param streamIds the value to set + * @return this builder + */ + public Builder streamIds(java.util.List streamIds) { + this.streamIds = streamIds; + this.__explicitlySet__.add("streamIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails build() { + ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails model = + new ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails( + this.isEnabled, + this.coolOffPeriodInMinutes, + this.maxMoveRuAttempts, + this.maxMoveRuUnit, + this.mode, + this.actionType, + this.notificationTopicIds, + this.streamIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { + this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { + this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { + this.maxMoveRuUnit(model.getMaxMoveRuUnit()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("streamIds")) { + this.streamIds(model.getStreamIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Time period to wait for the database to get stable after autoResourceManagement event. */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private final Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @return the value + */ + public Integer getCoolOffPeriodInMinutes() { + return coolOffPeriodInMinutes; + } + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private final Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @return the value + */ + public Integer getMaxMoveRuAttempts() { + return maxMoveRuAttempts; + } + + /** Time unit applicable to maxMoveRuAttempts. */ + public enum MaxMoveRuUnit implements com.oracle.bmc.http.internal.BmcEnum { + Hour("HOUR"), + Day("DAY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { + map.put(v.getValue(), v); + } + } + + MaxMoveRuUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaxMoveRuUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MaxMoveRuUnit: " + key); + } + }; + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private final MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @return the value + */ + public MaxMoveRuUnit getMaxMoveRuUnit() { + return maxMoveRuUnit; + } + + /** Mode of autoResourceManagement execution. */ + public enum Mode implements com.oracle.bmc.http.internal.BmcEnum { + Automatic("AUTOMATIC"), + Recommendation("RECOMMENDATION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + map.put(v.getValue(), v); + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Mode: " + key); + } + }; + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @return the value + */ + public Mode getMode() { + return mode; + } + + /** The action that will be taken when autoResourceManagement is triggered. */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Move("MOVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + map.put(v.getValue(), v); + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ActionType: " + key); + } + }; + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private final java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + * + * @return the value + */ + public java.util.List getStreamIds() { + return streamIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); + sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); + sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", streamIds=").append(String.valueOf(this.streamIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails other = + (ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) + && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) + && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.streamIds, other.streamIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.coolOffPeriodInMinutes == null + ? 43 + : this.coolOffPeriodInMinutes.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java new file mode 100644 index 00000000000..28645ec668b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.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.distributeddatabasev26.model; + +/** + * Details of the request to configure wallet on global service manager(GSM) instances for a + * distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfigureDistributedAutonomousDatabaseGsmWalletDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfigureDistributedAutonomousDatabaseGsmWalletDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"certificateId", "caBundleId"}) + public ConfigureDistributedAutonomousDatabaseGsmWalletDetails( + String certificateId, String caBundleId) { + super(); + this.certificateId = certificateId; + this.caBundleId = caBundleId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cluster certificate. + */ + @com.fasterxml.jackson.annotation.JsonProperty("certificateId") + private String certificateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cluster certificate. + * + * @param certificateId the value to set + * @return this builder + */ + public Builder certificateId(String certificateId) { + this.certificateId = certificateId; + this.__explicitlySet__.add("certificateId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * ca bundle id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("caBundleId") + private String caBundleId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * ca bundle id. + * + * @param caBundleId the value to set + * @return this builder + */ + public Builder caBundleId(String caBundleId) { + this.caBundleId = caBundleId; + this.__explicitlySet__.add("caBundleId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigureDistributedAutonomousDatabaseGsmWalletDetails build() { + ConfigureDistributedAutonomousDatabaseGsmWalletDetails model = + new ConfigureDistributedAutonomousDatabaseGsmWalletDetails( + this.certificateId, this.caBundleId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmWalletDetails model) { + if (model.wasPropertyExplicitlySet("certificateId")) { + this.certificateId(model.getCertificateId()); + } + if (model.wasPropertyExplicitlySet("caBundleId")) { + this.caBundleId(model.getCaBundleId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cluster certificate. + */ + @com.fasterxml.jackson.annotation.JsonProperty("certificateId") + private final String certificateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cluster certificate. + * + * @return the value + */ + public String getCertificateId() { + return certificateId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ca + * bundle id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("caBundleId") + private final String caBundleId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ca + * bundle id. + * + * @return the value + */ + public String getCaBundleId() { + return caBundleId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfigureDistributedAutonomousDatabaseGsmWalletDetails("); + sb.append("super=").append(super.toString()); + sb.append("certificateId=").append(String.valueOf(this.certificateId)); + sb.append(", caBundleId=").append(String.valueOf(this.caBundleId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmWalletDetails)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmWalletDetails other = + (ConfigureDistributedAutonomousDatabaseGsmWalletDetails) o; + return java.util.Objects.equals(this.certificateId, other.certificateId) + && java.util.Objects.equals(this.caBundleId, other.caBundleId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.certificateId == null ? 43 : this.certificateId.hashCode()); + result = (result * PRIME) + (this.caBundleId == null ? 43 : this.caBundleId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java new file mode 100644 index 00000000000..4c83cf7dae2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.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.distributeddatabasev26.model; + +/** + * Details of the request to configure new global service manager(GSM) instances for the distributed + * autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfigureDistributedAutonomousDatabaseGsmsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfigureDistributedAutonomousDatabaseGsmsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"oldGsmNames", "isLatestGsmImage"}) + public ConfigureDistributedAutonomousDatabaseGsmsDetails( + java.util.List oldGsmNames, Boolean isLatestGsmImage) { + super(); + this.oldGsmNames = oldGsmNames; + this.isLatestGsmImage = isLatestGsmImage; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM + * instances need to be configured. + */ + @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") + private java.util.List oldGsmNames; + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM + * instances need to be configured. + * + * @param oldGsmNames the value to set + * @return this builder + */ + public Builder oldGsmNames(java.util.List oldGsmNames) { + this.oldGsmNames = oldGsmNames; + this.__explicitlySet__.add("oldGsmNames"); + return this; + } + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") + private Boolean isLatestGsmImage; + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + * + * @param isLatestGsmImage the value to set + * @return this builder + */ + public Builder isLatestGsmImage(Boolean isLatestGsmImage) { + this.isLatestGsmImage = isLatestGsmImage; + this.__explicitlySet__.add("isLatestGsmImage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigureDistributedAutonomousDatabaseGsmsDetails build() { + ConfigureDistributedAutonomousDatabaseGsmsDetails model = + new ConfigureDistributedAutonomousDatabaseGsmsDetails( + this.oldGsmNames, this.isLatestGsmImage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsDetails model) { + if (model.wasPropertyExplicitlySet("oldGsmNames")) { + this.oldGsmNames(model.getOldGsmNames()); + } + if (model.wasPropertyExplicitlySet("isLatestGsmImage")) { + this.isLatestGsmImage(model.getIsLatestGsmImage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM instances + * need to be configured. + */ + @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") + private final java.util.List oldGsmNames; + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM instances + * need to be configured. + * + * @return the value + */ + public java.util.List getOldGsmNames() { + return oldGsmNames; + } + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") + private final Boolean isLatestGsmImage; + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + * + * @return the value + */ + public Boolean getIsLatestGsmImage() { + return isLatestGsmImage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfigureDistributedAutonomousDatabaseGsmsDetails("); + sb.append("super=").append(super.toString()); + sb.append("oldGsmNames=").append(String.valueOf(this.oldGsmNames)); + sb.append(", isLatestGsmImage=").append(String.valueOf(this.isLatestGsmImage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmsDetails)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmsDetails other = + (ConfigureDistributedAutonomousDatabaseGsmsDetails) o; + return java.util.Objects.equals(this.oldGsmNames, other.oldGsmNames) + && java.util.Objects.equals(this.isLatestGsmImage, other.isLatestGsmImage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.oldGsmNames == null ? 43 : this.oldGsmNames.hashCode()); + result = + (result * PRIME) + + (this.isLatestGsmImage == null ? 43 : this.isLatestGsmImage.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java new file mode 100644 index 00000000000..4ce80d2e366 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java @@ -0,0 +1,551 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * AutoResourceManagement configuration details for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfigureDistributedDatabaseAutoResourceManagementDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfigureDistributedDatabaseAutoResourceManagementDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "coolOffPeriodInMinutes", + "maxMoveRuAttempts", + "maxMoveRuUnit", + "mode", + "actionType", + "notificationTopicIds", + "streamIds" + }) + public ConfigureDistributedDatabaseAutoResourceManagementDetails( + Boolean isEnabled, + Integer coolOffPeriodInMinutes, + Integer maxMoveRuAttempts, + MaxMoveRuUnit maxMoveRuUnit, + Mode mode, + ActionType actionType, + java.util.List notificationTopicIds, + java.util.List streamIds) { + super(); + this.isEnabled = isEnabled; + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.maxMoveRuUnit = maxMoveRuUnit; + this.mode = mode; + this.actionType = actionType; + this.notificationTopicIds = notificationTopicIds; + this.streamIds = streamIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @param coolOffPeriodInMinutes the value to set + * @return this builder + */ + public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.__explicitlySet__.add("coolOffPeriodInMinutes"); + return this; + } + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @param maxMoveRuAttempts the value to set + * @return this builder + */ + public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.__explicitlySet__.add("maxMoveRuAttempts"); + return this; + } + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @param maxMoveRuUnit the value to set + * @return this builder + */ + public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { + this.maxMoveRuUnit = maxMoveRuUnit; + this.__explicitlySet__.add("maxMoveRuUnit"); + return this; + } + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @param mode the value to set + * @return this builder + */ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + * + * @param streamIds the value to set + * @return this builder + */ + public Builder streamIds(java.util.List streamIds) { + this.streamIds = streamIds; + this.__explicitlySet__.add("streamIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigureDistributedDatabaseAutoResourceManagementDetails build() { + ConfigureDistributedDatabaseAutoResourceManagementDetails model = + new ConfigureDistributedDatabaseAutoResourceManagementDetails( + this.isEnabled, + this.coolOffPeriodInMinutes, + this.maxMoveRuAttempts, + this.maxMoveRuUnit, + this.mode, + this.actionType, + this.notificationTopicIds, + this.streamIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementDetails model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { + this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { + this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { + this.maxMoveRuUnit(model.getMaxMoveRuUnit()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("streamIds")) { + this.streamIds(model.getStreamIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Time period to wait for the database to get stable after autoResourceManagement event. */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private final Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @return the value + */ + public Integer getCoolOffPeriodInMinutes() { + return coolOffPeriodInMinutes; + } + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private final Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @return the value + */ + public Integer getMaxMoveRuAttempts() { + return maxMoveRuAttempts; + } + + /** Time unit applicable to maxMoveRuAttempts. */ + public enum MaxMoveRuUnit implements com.oracle.bmc.http.internal.BmcEnum { + Hour("HOUR"), + Day("DAY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { + map.put(v.getValue(), v); + } + } + + MaxMoveRuUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaxMoveRuUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MaxMoveRuUnit: " + key); + } + }; + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private final MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @return the value + */ + public MaxMoveRuUnit getMaxMoveRuUnit() { + return maxMoveRuUnit; + } + + /** Mode of autoResourceManagement execution. */ + public enum Mode implements com.oracle.bmc.http.internal.BmcEnum { + Automatic("AUTOMATIC"), + Recommendation("RECOMMENDATION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + map.put(v.getValue(), v); + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Mode: " + key); + } + }; + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @return the value + */ + public Mode getMode() { + return mode; + } + + /** The action that will be taken when autoResourceManagement is triggered. */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Move("MOVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + map.put(v.getValue(), v); + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ActionType: " + key); + } + }; + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private final java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + * + * @return the value + */ + public java.util.List getStreamIds() { + return streamIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfigureDistributedDatabaseAutoResourceManagementDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); + sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); + sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", streamIds=").append(String.valueOf(this.streamIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedDatabaseAutoResourceManagementDetails)) { + return false; + } + + ConfigureDistributedDatabaseAutoResourceManagementDetails other = + (ConfigureDistributedDatabaseAutoResourceManagementDetails) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) + && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) + && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.streamIds, other.streamIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.coolOffPeriodInMinutes == null + ? 43 + : this.coolOffPeriodInMinutes.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java new file mode 100644 index 00000000000..3ec36eb5d38 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java @@ -0,0 +1,191 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of the request to configure new global service manager(GSM) instances for the distributed + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfigureDistributedDatabaseGsmsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfigureDistributedDatabaseGsmsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"oldGsmNames", "isLatestGsmImage"}) + public ConfigureDistributedDatabaseGsmsDetails( + java.util.List oldGsmNames, Boolean isLatestGsmImage) { + super(); + this.oldGsmNames = oldGsmNames; + this.isLatestGsmImage = isLatestGsmImage; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM + * instances need to be configured. + */ + @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") + private java.util.List oldGsmNames; + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM + * instances need to be configured. + * + * @param oldGsmNames the value to set + * @return this builder + */ + public Builder oldGsmNames(java.util.List oldGsmNames) { + this.oldGsmNames = oldGsmNames; + this.__explicitlySet__.add("oldGsmNames"); + return this; + } + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") + private Boolean isLatestGsmImage; + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + * + * @param isLatestGsmImage the value to set + * @return this builder + */ + public Builder isLatestGsmImage(Boolean isLatestGsmImage) { + this.isLatestGsmImage = isLatestGsmImage; + this.__explicitlySet__.add("isLatestGsmImage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigureDistributedDatabaseGsmsDetails build() { + ConfigureDistributedDatabaseGsmsDetails model = + new ConfigureDistributedDatabaseGsmsDetails( + this.oldGsmNames, this.isLatestGsmImage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfigureDistributedDatabaseGsmsDetails model) { + if (model.wasPropertyExplicitlySet("oldGsmNames")) { + this.oldGsmNames(model.getOldGsmNames()); + } + if (model.wasPropertyExplicitlySet("isLatestGsmImage")) { + this.isLatestGsmImage(model.getIsLatestGsmImage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM instances + * need to be configured. + */ + @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") + private final java.util.List oldGsmNames; + + /** + * Names of old global service manager(GSM) instances corresponding to which new GSM instances + * need to be configured. + * + * @return the value + */ + public java.util.List getOldGsmNames() { + return oldGsmNames; + } + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") + private final Boolean isLatestGsmImage; + + /** + * Flag to indicate if new global service manager(GSM) instances shall use latest image or + * re-use image used by existing GSM instances. + * + * @return the value + */ + public Boolean getIsLatestGsmImage() { + return isLatestGsmImage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfigureDistributedDatabaseGsmsDetails("); + sb.append("super=").append(super.toString()); + sb.append("oldGsmNames=").append(String.valueOf(this.oldGsmNames)); + sb.append(", isLatestGsmImage=").append(String.valueOf(this.isLatestGsmImage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedDatabaseGsmsDetails)) { + return false; + } + + ConfigureDistributedDatabaseGsmsDetails other = (ConfigureDistributedDatabaseGsmsDetails) o; + return java.util.Objects.equals(this.oldGsmNames, other.oldGsmNames) + && java.util.Objects.equals(this.isLatestGsmImage, other.isLatestGsmImage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.oldGsmNames == null ? 43 : this.oldGsmNames.hashCode()); + result = + (result * PRIME) + + (this.isLatestGsmImage == null ? 43 : this.isLatestGsmImage.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java new file mode 100644 index 00000000000..838ebdefb8f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java @@ -0,0 +1,114 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details for creating a distributed autonomous database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = CreateAutonomousCatalogDatabaseDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.class, + name = "ADBD_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateAutonomousCatalogDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateAutonomousCatalogDatabaseDetails() { + 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("CreateAutonomousCatalogDatabaseDetails("); + 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 CreateAutonomousCatalogDatabaseDetails)) { + return false; + } + + CreateAutonomousCatalogDatabaseDetails other = (CreateAutonomousCatalogDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed autonomous database type. Use ADBD_EXISTING_CLUSTER + * for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + map.put(v.getValue(), v); + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Source: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java new file mode 100644 index 00000000000..11ba6c16237 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java @@ -0,0 +1,166 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a distributed autonomous database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCatalogDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCatalogDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public CreateAutonomousCatalogDetails( + CreateAutonomousCatalogReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateAutonomousCatalogReplicaDetails originalReplica; + + public Builder originalReplica(CreateAutonomousCatalogReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** Details required to create data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the catalog. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCatalogDetails build() { + CreateAutonomousCatalogDetails model = + new CreateAutonomousCatalogDetails( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCatalogDetails model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateAutonomousCatalogReplicaDetails originalReplica; + + public CreateAutonomousCatalogReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** Details required to create data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the catalog. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCatalogDetails("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCatalogDetails)) { + return false; + } + + CreateAutonomousCatalogDetails other = (CreateAutonomousCatalogDetails) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java new file mode 100644 index 00000000000..88e1042a23d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java @@ -0,0 +1,167 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a catalog replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCatalogReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCatalogReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public CreateAutonomousCatalogReplicaDetails( + String name, CreateAutonomousCatalogDatabaseDetails database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private CreateAutonomousCatalogDatabaseDetails database; + + public Builder database(CreateAutonomousCatalogDatabaseDetails database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCatalogReplicaDetails build() { + CreateAutonomousCatalogReplicaDetails model = + new CreateAutonomousCatalogReplicaDetails(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCatalogReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final CreateAutonomousCatalogDatabaseDetails database; + + public CreateAutonomousCatalogDatabaseDetails getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCatalogReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCatalogReplicaDetails)) { + return false; + } + + CreateAutonomousCatalogReplicaDetails other = (CreateAutonomousCatalogReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java new file mode 100644 index 00000000000..8544cba84e0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details required to create a composite data guard shard space for a Globally distributed + * autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCompositeDataGuardShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCompositeDataGuardShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "originalReplica", + "dataGuardReplicas" + }) + public CreateAutonomousCompositeDataGuardShardSpaceDetails( + String name, + Integer chunkCount, + CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica, + java.util.List + dataGuardReplicas) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica; + + public Builder originalReplica( + CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica for the shard being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List + dataGuardReplicas; + + /** + * The details of data guard replica for the shard being created. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List + dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCompositeDataGuardShardSpaceDetails build() { + CreateAutonomousCompositeDataGuardShardSpaceDetails model = + new CreateAutonomousCompositeDataGuardShardSpaceDetails( + this.name, + this.chunkCount, + this.originalReplica, + this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCompositeDataGuardShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica; + + public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica for the shard being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List + dataGuardReplicas; + + /** + * The details of data guard replica for the shard being created. + * + * @return the value + */ + public java.util.List + getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCompositeDataGuardShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCompositeDataGuardShardSpaceDetails)) { + return false; + } + + CreateAutonomousCompositeDataGuardShardSpaceDetails other = + (CreateAutonomousCompositeDataGuardShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java new file mode 100644 index 00000000000..fa8cc88b087 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java @@ -0,0 +1,184 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a composite data guard shard space replica for a Globally distributed + * autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails( + String name, + java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails build() { + CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails model = + new CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails( + this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails)) { + return false; + } + + CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails other = + (CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java new file mode 100644 index 00000000000..2aed2898b70 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java @@ -0,0 +1,270 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a composite raft shard space for a Globally distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCompositeRaftShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCompositeRaftShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "replicationUnitCount", + "raftClusters" + }) + public CreateAutonomousCompositeRaftShardSpaceDetails( + String name, + Integer chunkCount, + Integer replicationUnitCount, + java.util.List raftClusters) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.replicationUnitCount = replicationUnitCount; + this.raftClusters = raftClusters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @param replicationUnitCount the value to set + * @return this builder + */ + public Builder replicationUnitCount(Integer replicationUnitCount) { + this.replicationUnitCount = replicationUnitCount; + this.__explicitlySet__.add("replicationUnitCount"); + return this; + } + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @param raftClusters the value to set + * @return this builder + */ + public Builder raftClusters( + java.util.List + raftClusters) { + this.raftClusters = raftClusters; + this.__explicitlySet__.add("raftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCompositeRaftShardSpaceDetails build() { + CreateAutonomousCompositeRaftShardSpaceDetails model = + new CreateAutonomousCompositeRaftShardSpaceDetails( + this.name, + this.chunkCount, + this.replicationUnitCount, + this.raftClusters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCompositeRaftShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("replicationUnitCount")) { + this.replicationUnitCount(model.getReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("raftClusters")) { + this.raftClusters(model.getRaftClusters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private final Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @return the value + */ + public Integer getReplicationUnitCount() { + return replicationUnitCount; + } + + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private final java.util.List + raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @return the value + */ + public java.util.List getRaftClusters() { + return raftClusters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCompositeRaftShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); + sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCompositeRaftShardSpaceDetails)) { + return false; + } + + CreateAutonomousCompositeRaftShardSpaceDetails other = + (CreateAutonomousCompositeRaftShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) + && java.util.Objects.equals(this.raftClusters, other.raftClusters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.replicationUnitCount == null + ? 43 + : this.replicationUnitCount.hashCode()); + result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java new file mode 100644 index 00000000000..a2d89c6e143 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java @@ -0,0 +1,336 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create raft clusters for a composite shard space.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousCompositeShardSpaceRaftClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousCompositeShardSpaceRaftClusterDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public CreateAutonomousCompositeShardSpaceRaftClusterDetails( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousCompositeShardSpaceRaftClusterDetails build() { + CreateAutonomousCompositeShardSpaceRaftClusterDetails model = + new CreateAutonomousCompositeShardSpaceRaftClusterDetails( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousCompositeShardSpaceRaftClusterDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + map.put(v.getValue(), v); + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuMode: " + key); + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousCompositeShardSpaceRaftClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousCompositeShardSpaceRaftClusterDetails)) { + return false; + } + + CreateAutonomousCompositeShardSpaceRaftClusterDetails other = + (CreateAutonomousCompositeShardSpaceRaftClusterDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java new file mode 100644 index 00000000000..4e19d0ebd76 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java @@ -0,0 +1,168 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a system data guard shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousSystemDataGuardDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousSystemDataGuardDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public CreateAutonomousSystemDataGuardDatabaseDetails( + CreateAutonomousSystemDataGuardReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateAutonomousSystemDataGuardReplicaDetails originalReplica; + + public Builder originalReplica( + CreateAutonomousSystemDataGuardReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details required to create system data guard replicas. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details required to create system data guard replicas. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousSystemDataGuardDatabaseDetails build() { + CreateAutonomousSystemDataGuardDatabaseDetails model = + new CreateAutonomousSystemDataGuardDatabaseDetails( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousSystemDataGuardDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateAutonomousSystemDataGuardReplicaDetails originalReplica; + + public CreateAutonomousSystemDataGuardReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details required to create system data guard replicas. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details required to create system data guard replicas. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousSystemDataGuardDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousSystemDataGuardDatabaseDetails)) { + return false; + } + + CreateAutonomousSystemDataGuardDatabaseDetails other = + (CreateAutonomousSystemDataGuardDatabaseDetails) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java new file mode 100644 index 00000000000..078d71351f8 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java @@ -0,0 +1,182 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a system data guard replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousSystemDataGuardReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousSystemDataGuardReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public CreateAutonomousSystemDataGuardReplicaDetails( + String name, + java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousSystemDataGuardReplicaDetails build() { + CreateAutonomousSystemDataGuardReplicaDetails model = + new CreateAutonomousSystemDataGuardReplicaDetails(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousSystemDataGuardReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + 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 data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousSystemDataGuardReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousSystemDataGuardReplicaDetails)) { + return false; + } + + CreateAutonomousSystemDataGuardReplicaDetails other = + (CreateAutonomousSystemDataGuardReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java new file mode 100644 index 00000000000..5f874f208da --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java @@ -0,0 +1,336 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create system raft cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousSystemRaftClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousSystemRaftClusterDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public CreateAutonomousSystemRaftClusterDetails( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousSystemRaftClusterDetails build() { + CreateAutonomousSystemRaftClusterDetails model = + new CreateAutonomousSystemRaftClusterDetails( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousSystemRaftClusterDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + map.put(v.getValue(), v); + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuMode: " + key); + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousSystemRaftClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousSystemRaftClusterDetails)) { + return false; + } + + CreateAutonomousSystemRaftClusterDetails other = + (CreateAutonomousSystemRaftClusterDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java new file mode 100644 index 00000000000..a6e090d0c8b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.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.distributeddatabasev26.model; + +/** + * Details required to create a user shard space.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousUserShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousUserShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) + public CreateAutonomousUserShardSpaceDetails( + String name, + CreateAutonomousUserShardSpaceReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateAutonomousUserShardSpaceReplicaDetails originalReplica; + + public Builder originalReplica( + CreateAutonomousUserShardSpaceReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** Details required to create data guard replicas for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the user shard space. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousUserShardSpaceDetails build() { + CreateAutonomousUserShardSpaceDetails model = + new CreateAutonomousUserShardSpaceDetails( + this.name, this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousUserShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + 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 user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateAutonomousUserShardSpaceReplicaDetails originalReplica; + + public CreateAutonomousUserShardSpaceReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** Details required to create data guard replicas for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the user shard space. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousUserShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousUserShardSpaceDetails)) { + return false; + } + + CreateAutonomousUserShardSpaceDetails other = (CreateAutonomousUserShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java new file mode 100644 index 00000000000..83e20a9c864 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java @@ -0,0 +1,168 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a user shard space replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousUserShardSpaceReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousUserShardSpaceReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public CreateAutonomousUserShardSpaceReplicaDetails( + String name, CreateDistributedAutonomousDatabaseShardDatabaseDetails database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private CreateDistributedAutonomousDatabaseShardDatabaseDetails database; + + public Builder database(CreateDistributedAutonomousDatabaseShardDatabaseDetails database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousUserShardSpaceReplicaDetails build() { + CreateAutonomousUserShardSpaceReplicaDetails model = + new CreateAutonomousUserShardSpaceReplicaDetails(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousUserShardSpaceReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final CreateDistributedAutonomousDatabaseShardDatabaseDetails database; + + public CreateDistributedAutonomousDatabaseShardDatabaseDetails getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousUserShardSpaceReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousUserShardSpaceReplicaDetails)) { + return false; + } + + CreateAutonomousUserShardSpaceReplicaDetails other = + (CreateAutonomousUserShardSpaceReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java new file mode 100644 index 00000000000..df109680310 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java @@ -0,0 +1,258 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed database composite data guard shard space creation details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCompositeDataGuardShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCompositeDataGuardShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "originalReplica", + "dataGuardReplicas" + }) + public CreateCompositeDataGuardShardSpaceDetails( + String name, + Integer chunkCount, + CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica; + + public Builder originalReplica( + CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica for the shard being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replica for the shard being created. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List + dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCompositeDataGuardShardSpaceDetails build() { + CreateCompositeDataGuardShardSpaceDetails model = + new CreateCompositeDataGuardShardSpaceDetails( + this.name, + this.chunkCount, + this.originalReplica, + this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCompositeDataGuardShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica; + + public CreateCompositeDataGuardShardSpaceReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica for the shard being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List + dataGuardReplicas; + + /** + * The details of data guard replica for the shard being created. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCompositeDataGuardShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCompositeDataGuardShardSpaceDetails)) { + return false; + } + + CreateCompositeDataGuardShardSpaceDetails other = + (CreateCompositeDataGuardShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java new file mode 100644 index 00000000000..1c8ac971d6b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Globally distributed database composite data guard shard space replica creation details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCompositeDataGuardShardSpaceReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCompositeDataGuardShardSpaceReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public CreateCompositeDataGuardShardSpaceReplicaDetails( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCompositeDataGuardShardSpaceReplicaDetails build() { + CreateCompositeDataGuardShardSpaceReplicaDetails model = + new CreateCompositeDataGuardShardSpaceReplicaDetails(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCompositeDataGuardShardSpaceReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The details of composite data guard shard space replica databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of composite data guard shard space replica databases. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCompositeDataGuardShardSpaceReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCompositeDataGuardShardSpaceReplicaDetails)) { + return false; + } + + CreateCompositeDataGuardShardSpaceReplicaDetails other = + (CreateCompositeDataGuardShardSpaceReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java new file mode 100644 index 00000000000..f5ee9ec7c2f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Globally distributed database composite raft shard space creation details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCompositeRaftShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCompositeRaftShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "chunkCount", + "replicationUnitCount", + "raftClusters" + }) + public CreateCompositeRaftShardSpaceDetails( + String name, + Integer chunkCount, + Integer replicationUnitCount, + java.util.List raftClusters) { + super(); + this.name = name; + this.chunkCount = chunkCount; + this.replicationUnitCount = replicationUnitCount; + this.raftClusters = raftClusters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @param chunkCount the value to set + * @return this builder + */ + public Builder chunkCount(Integer chunkCount) { + this.chunkCount = chunkCount; + this.__explicitlySet__.add("chunkCount"); + return this; + } + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @param replicationUnitCount the value to set + * @return this builder + */ + public Builder replicationUnitCount(Integer replicationUnitCount) { + this.replicationUnitCount = replicationUnitCount; + this.__explicitlySet__.add("replicationUnitCount"); + return this; + } + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @param raftClusters the value to set + * @return this builder + */ + public Builder raftClusters( + java.util.List raftClusters) { + this.raftClusters = raftClusters; + this.__explicitlySet__.add("raftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCompositeRaftShardSpaceDetails build() { + CreateCompositeRaftShardSpaceDetails model = + new CreateCompositeRaftShardSpaceDetails( + this.name, + this.chunkCount, + this.replicationUnitCount, + this.raftClusters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCompositeRaftShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("chunkCount")) { + this.chunkCount(model.getChunkCount()); + } + if (model.wasPropertyExplicitlySet("replicationUnitCount")) { + this.replicationUnitCount(model.getReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("raftClusters")) { + this.raftClusters(model.getRaftClusters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of shard space. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Count of chunks associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") + private final Integer chunkCount; + + /** + * Count of chunks associated with the shard space. + * + * @return the value + */ + public Integer getChunkCount() { + return chunkCount; + } + + /** Number of replication units in the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") + private final Integer replicationUnitCount; + + /** + * Number of replication units in the shard space. + * + * @return the value + */ + public Integer getReplicationUnitCount() { + return replicationUnitCount; + } + + /** The details of raft clusters associated with the shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") + private final java.util.List raftClusters; + + /** + * The details of raft clusters associated with the shard space. + * + * @return the value + */ + public java.util.List getRaftClusters() { + return raftClusters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCompositeRaftShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); + sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); + sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCompositeRaftShardSpaceDetails)) { + return false; + } + + CreateCompositeRaftShardSpaceDetails other = (CreateCompositeRaftShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.chunkCount, other.chunkCount) + && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) + && java.util.Objects.equals(this.raftClusters, other.raftClusters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); + result = + (result * PRIME) + + (this.replicationUnitCount == null + ? 43 + : this.replicationUnitCount.hashCode()); + result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java new file mode 100644 index 00000000000..5f2660b8847 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java @@ -0,0 +1,336 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Raft clusters details required for creation of composite shard spaces.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCompositeShardSpaceRaftClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCompositeShardSpaceRaftClusterDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public CreateCompositeShardSpaceRaftClusterDetails( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCompositeShardSpaceRaftClusterDetails build() { + CreateCompositeShardSpaceRaftClusterDetails model = + new CreateCompositeShardSpaceRaftClusterDetails( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCompositeShardSpaceRaftClusterDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + map.put(v.getValue(), v); + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuMode: " + key); + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** The details of databases associated with the composite shard space raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * The details of databases associated with the composite shard space raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCompositeShardSpaceRaftClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCompositeShardSpaceRaftClusterDetails)) { + return false; + } + + CreateCompositeShardSpaceRaftClusterDetails other = + (CreateCompositeShardSpaceRaftClusterDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java new file mode 100644 index 00000000000..f88461669bd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java @@ -0,0 +1,764 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed autonomous database catalog using an existing ADB-D VM + * cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails + extends CreateAutonomousCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The admin password for the catalog associated with the distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with the distributed autonomous database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** The compute count for the catalog database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the catalog database. It has to be in multiples of 2. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** The data disk group size to be allocated in GBs for the catalog database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the catalog database. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + * + * @param isAutoScalingEnabled the value to set + * @return this builder + */ + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + * + * @param cloudAutonomousVmClusterId the value to set + * @return this builder + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.__explicitlySet__.add("cloudAutonomousVmClusterId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the catalog. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the catalog. + * + * @param okvKeyStoreId the value to set + * @return this builder + */ + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); + return this; + } + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @param okvEndPointGroupName the value to set + * @return this builder + */ + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); + return this; + } + /** The protectionMode for the catalog peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protectionMode for the catalog peer. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @param fastStartFailOverLagLimitInSeconds the value to set + * @return this builder + */ + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); + return this; + } + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance + * of the primary database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance + * of the primary database. + * + * @param standbyMaintenanceBufferInDays the value to set + * @return this builder + */ + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails build() { + CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails model = + new CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails( + this.adminPassword, + this.computeCount, + this.dataStorageSizeInGbs, + this.isAutoScalingEnabled, + this.cloudAutonomousVmClusterId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { + this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { + this.okvKeyStoreId(model.getOkvKeyStoreId()); + } + if (model.wasPropertyExplicitlySet("okvEndPointGroupName")) { + this.okvEndPointGroupName(model.getOkvEndPointGroupName()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { + this.fastStartFailOverLagLimitInSeconds( + model.getFastStartFailOverLagLimitInSeconds()); + } + if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { + this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails( + String adminPassword, + Float computeCount, + Double dataStorageSizeInGbs, + Boolean isAutoScalingEnabled, + String cloudAutonomousVmClusterId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") Float computeCount, + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + Double dataStorageSizeInGbs, + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + Boolean isAutoScalingEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + String cloudAutonomousVmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") String okvKeyStoreId, + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + String okvEndPointGroupName, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedAutonomousDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + Integer fastStartFailOverLagLimitInSeconds, + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + } + + /** The admin password for the catalog associated with the distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with the distributed autonomous database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with the distributed autonomous database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** The compute count for the catalog database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the catalog database. It has to be in multiples of 2. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the catalog database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the catalog database. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private final String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + * + * @return the value + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the catalog. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private final String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the catalog. + * + * @return the value + */ + public String getOkvKeyStoreId() { + return okvKeyStoreId; + } + + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @return the value + */ + public String getOkvEndPointGroupName() { + return okvEndPointGroupName; + } + + /** The protectionMode for the catalog peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protectionMode for the catalog peer. + * + * @return the value + */ + public DistributedAutonomousDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private final Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @return the value + */ + public Integer getFastStartFailOverLagLimitInSeconds() { + return fastStartFailOverLagLimitInSeconds; + } + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance of + * the primary database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private final Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance of + * the primary database. + * + * @return the value + */ + public Integer getStandbyMaintenanceBufferInDays() { + return standbyMaintenanceBufferInDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); + sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", fastStartFailOverLagLimitInSeconds=") + .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); + sb.append(", standbyMaintenanceBufferInDays=") + .append(String.valueOf(this.standbyMaintenanceBufferInDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails)) { + return false; + } + + CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails other = + (CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) + && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals( + this.fastStartFailOverLagLimitInSeconds, + other.fastStartFailOverLagLimitInSeconds) + && java.util.Objects.equals( + this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); + result = + (result * PRIME) + + (this.okvEndPointGroupName == null + ? 43 + : this.okvEndPointGroupName.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.fastStartFailOverLagLimitInSeconds == null + ? 43 + : this.fastStartFailOverLagLimitInSeconds.hashCode()); + result = + (result * PRIME) + + (this.standbyMaintenanceBufferInDays == null + ? 43 + : this.standbyMaintenanceBufferInDays.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..49fad27d097 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java @@ -0,0 +1,1267 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required for creation of the Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "databaseVersion", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "dbWorkloadType", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", + "catalogDetails", + "dbBackupConfig", + "vcnNsgIds", + "freeformTags", + "definedTags" + }) + public CreateDistributedAutonomousDatabaseDetails( + String compartmentId, + String displayName, + String databaseVersion, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + DbWorkloadType dbWorkloadType, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer systemChunkCount, + Integer systemRaftReplicationUnitCount, + java.util.List compositeRaftShardSpaces, + java.util.List + compositeDataGuardShardSpaces, + java.util.List systemRaftClusters, + CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases, + java.util.List userShardSpaces, + java.util.List catalogDetails, + DistributedAutonomousDbBackupConfig dbBackupConfig, + java.util.List vcnNsgIds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseVersion = databaseVersion; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.systemChunkCount = systemChunkCount; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.systemRaftClusters = systemRaftClusters; + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.userShardSpaces = userShardSpaces; + this.catalogDetails = catalogDetails; + this.dbBackupConfig = dbBackupConfig; + this.vcnNsgIds = vcnNsgIds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** Possible workload types. Currently only OLTP workload type is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DbWorkloadType dbWorkloadType; + + /** + * Possible workload types. Currently only OLTP workload type is supported. + * + * @param dbWorkloadType the value to set + * @return this builder + */ + public Builder dbWorkloadType(DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** + * The listener port number for the Globally distributed autonomous database. The listener + * port number has to be unique for a customer tenancy across all distributed autonomous + * databases. Same port number should not be re-used for any other distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. The listener + * port number has to be unique for a customer tenancy across all distributed autonomous + * databases. Same port number should not be re-used for any other distributed autonomous + * database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The TLS listener port number for Globally distributed autonomous database. The TLS + * listener port number has to be unique for a customer tenancy across all distributed + * autonomous databases. Same port number should not be re-used for any other distributed + * autonomous database. The listenerPortTls is mandatory for dedicated infrastructure based + * distributed autonomous databases. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed autonomous database. The TLS + * listener port number has to be unique for a customer tenancy across all distributed + * autonomous databases. Same port number should not be re-used for any other distributed + * autonomous database. The listenerPortTls is mandatory for dedicated infrastructure based + * distributed autonomous databases. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** + * Ons local port number for Globally distributed autonomous database. The onsPortLocal has + * to be unique for a customer tenancy across all distributed autonomous databases. Same + * port number should not be re-used for any other distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * Ons local port number for Globally distributed autonomous database. The onsPortLocal has + * to be unique for a customer tenancy across all distributed autonomous databases. Same + * port number should not be re-used for any other distributed autonomous database. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** + * Ons remote port number for Globally distributed autonomous database. The onsPortRemote + * has to be unique for a customer tenancy across all distributed autonomous databases. Same + * port number should not be re-used for any other distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * Ons remote port number for Globally distributed autonomous database. The onsPortRemote + * has to be unique for a customer tenancy across all distributed autonomous databases. Same + * port number should not be re-used for any other distributed autonomous database. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private java.util.List + compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder + */ + public Builder compositeRaftShardSpaces( + java.util.List + compositeRaftShardSpaces) { + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.__explicitlySet__.add("compositeRaftShardSpaces"); + return this; + } + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @param compositeDataGuardShardSpaces the value to set + * @return this builder + */ + public Builder compositeDataGuardShardSpaces( + java.util.List + compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); + return this; + } + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @param systemRaftClusters the value to set + * @return this builder + */ + public Builder systemRaftClusters( + java.util.List systemRaftClusters) { + this.systemRaftClusters = systemRaftClusters; + this.__explicitlySet__.add("systemRaftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public Builder systemDataGuardDatabases( + CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases) { + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.__explicitlySet__.add("systemDataGuardDatabases"); + return this; + } + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @param userShardSpaces the value to set + * @return this builder + */ + public Builder userShardSpaces( + java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); + return this; + } + /** Collection of catalog for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private java.util.List catalogDetails; + + /** + * Collection of catalog for the Globally distributed autonomous database. + * + * @param catalogDetails the value to set + * @return this builder + */ + public Builder catalogDetails( + java.util.List catalogDetails) { + this.catalogDetails = catalogDetails; + this.__explicitlySet__.add("catalogDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedAutonomousDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + /** + * The list of network security group (NSG) details to be associated with the distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the distributed + * autonomous database. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedAutonomousDatabaseDetails build() { + CreateDistributedAutonomousDatabaseDetails model = + new CreateDistributedAutonomousDatabaseDetails( + this.compartmentId, + this.displayName, + this.databaseVersion, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.dbWorkloadType, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.systemChunkCount, + this.systemRaftReplicationUnitCount, + this.compositeRaftShardSpaces, + this.compositeDataGuardShardSpaces, + this.systemRaftClusters, + this.systemDataGuardDatabases, + this.userShardSpaces, + this.catalogDetails, + this.dbBackupConfig, + this.vcnNsgIds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); + } + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); + } + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); + } + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); + } + if (model.wasPropertyExplicitlySet("catalogDetails")) { + this.catalogDetails(model.getCatalogDetails()); + } + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** Possible workload types. Currently only OLTP workload type is supported. */ + public enum DbWorkloadType implements com.oracle.bmc.http.internal.BmcEnum { + Oltp("OLTP"), + Dw("DW"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbWorkloadType v : DbWorkloadType.values()) { + map.put(v.getValue(), v); + } + } + + DbWorkloadType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbWorkloadType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DbWorkloadType: " + key); + } + }; + /** Possible workload types. Currently only OLTP workload type is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private final DbWorkloadType dbWorkloadType; + + /** + * Possible workload types. Currently only OLTP workload type is supported. + * + * @return the value + */ + public DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** + * The listener port number for the Globally distributed autonomous database. The listener port + * number has to be unique for a customer tenancy across all distributed autonomous databases. + * Same port number should not be re-used for any other distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. The listener port + * number has to be unique for a customer tenancy across all distributed autonomous databases. + * Same port number should not be re-used for any other distributed autonomous database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The TLS listener port number for Globally distributed autonomous database. The TLS listener + * port number has to be unique for a customer tenancy across all distributed autonomous + * databases. Same port number should not be re-used for any other distributed autonomous + * database. The listenerPortTls is mandatory for dedicated infrastructure based distributed + * autonomous databases. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed autonomous database. The TLS listener + * port number has to be unique for a customer tenancy across all distributed autonomous + * databases. Same port number should not be re-used for any other distributed autonomous + * database. The listenerPortTls is mandatory for dedicated infrastructure based distributed + * autonomous databases. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** + * Ons local port number for Globally distributed autonomous database. The onsPortLocal has to + * be unique for a customer tenancy across all distributed autonomous databases. Same port + * number should not be re-used for any other distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * Ons local port number for Globally distributed autonomous database. The onsPortLocal has to + * be unique for a customer tenancy across all distributed autonomous databases. Same port + * number should not be re-used for any other distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** + * Ons remote port number for Globally distributed autonomous database. The onsPortRemote has to + * be unique for a customer tenancy across all distributed autonomous databases. Same port + * number should not be re-used for any other distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * Ons remote port number for Globally distributed autonomous database. The onsPortRemote has to + * be unique for a customer tenancy across all distributed autonomous databases. Same port + * number should not be re-used for any other distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List + compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @return the value + */ + public java.util.List + getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; + } + + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @return the value + */ + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; + } + + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @return the value + */ + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public CreateAutonomousSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { + return systemDataGuardDatabases; + } + + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @return the value + */ + public java.util.List getUserShardSpaces() { + return userShardSpaces; + } + + /** Collection of catalog for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private final java.util.List catalogDetails; + + /** + * Collection of catalog for the Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getCatalogDetails() { + return catalogDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedAutonomousDbBackupConfig dbBackupConfig; + + public DistributedAutonomousDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + /** + * The list of network security group (NSG) details to be associated with the distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the distributed + * autonomous database. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", dbWorkloadType=").append(String.valueOf(this.dbWorkloadType)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", compositeRaftShardSpaces=") + .append(String.valueOf(this.compositeRaftShardSpaces)); + sb.append(", compositeDataGuardShardSpaces=") + .append(String.valueOf(this.compositeDataGuardShardSpaces)); + sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); + sb.append(", systemDataGuardDatabases=") + .append(String.valueOf(this.systemDataGuardDatabases)); + sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); + sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); + sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedAutonomousDatabaseDetails)) { + return false; + } + + CreateDistributedAutonomousDatabaseDetails other = + (CreateDistributedAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.dbWorkloadType, other.dbWorkloadType) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals( + this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) + && java.util.Objects.equals( + this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) + && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) + && java.util.Objects.equals( + this.systemDataGuardDatabases, other.systemDataGuardDatabases) + && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) + && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) + && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = + (result * PRIME) + + (this.dbWorkloadType == null ? 43 : this.dbWorkloadType.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = + (result * PRIME) + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); + result = + (result * PRIME) + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); + result = + (result * PRIME) + + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java new file mode 100644 index 00000000000..2cef830d32c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java @@ -0,0 +1,115 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details for creating a distributed autonomous database shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = CreateDistributedAutonomousDatabaseShardDatabaseDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.class, + name = "ADBD_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDistributedAutonomousDatabaseShardDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateDistributedAutonomousDatabaseShardDatabaseDetails() { + 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("CreateDistributedAutonomousDatabaseShardDatabaseDetails("); + 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 CreateDistributedAutonomousDatabaseShardDatabaseDetails)) { + return false; + } + + CreateDistributedAutonomousDatabaseShardDatabaseDetails other = + (CreateDistributedAutonomousDatabaseShardDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed autonomous database type. Use ADBD_EXISTING_CLUSTER + * for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + map.put(v.getValue(), v); + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Source: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java new file mode 100644 index 00000000000..fb2846647ad --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java @@ -0,0 +1,815 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed autonomous database shard using an existing ADB-D VM + * cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails + extends CreateDistributedAutonomousDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Admin password for shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * Admin password for shard database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** The compute count for the shard database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the shard database. It has to be in multiples of 2. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** The data disk group size to be allocated in GBs for the shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the shard database. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * The shard space name for the shard database. Shard space for an existing shard cannot be + * changed once the shard is created. The shard space name is used when creating new shards. + * For user-defined sharding, every shard must have a unique shard space name. For + * system-defined sharding, a shard space name is not required. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") + private String shardSpaceName; + + /** + * The shard space name for the shard database. Shard space for an existing shard cannot be + * changed once the shard is created. The shard space name is used when creating new shards. + * For user-defined sharding, every shard must have a unique shard space name. For + * system-defined sharding, a shard space name is not required. + * + * @param shardSpaceName the value to set + * @return this builder + */ + public Builder shardSpaceName(String shardSpaceName) { + this.shardSpaceName = shardSpaceName; + this.__explicitlySet__.add("shardSpaceName"); + return this; + } + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + * + * @param isAutoScalingEnabled the value to set + * @return this builder + */ + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + * + * @param cloudAutonomousVmClusterId the value to set + * @return this builder + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.__explicitlySet__.add("cloudAutonomousVmClusterId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the shard. + * + * @param okvKeyStoreId the value to set + * @return this builder + */ + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); + return this; + } + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @param okvEndPointGroupName the value to set + * @return this builder + */ + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); + return this; + } + /** The protection mode for the shard peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the shard peer. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @param fastStartFailOverLagLimitInSeconds the value to set + * @return this builder + */ + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); + return this; + } + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + * + * @param standbyMaintenanceBufferInDays the value to set + * @return this builder + */ + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails build() { + CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails model = + new CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( + this.adminPassword, + this.computeCount, + this.dataStorageSizeInGbs, + this.shardSpaceName, + this.isAutoScalingEnabled, + this.cloudAutonomousVmClusterId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("shardSpaceName")) { + this.shardSpaceName(model.getShardSpaceName()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { + this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { + this.okvKeyStoreId(model.getOkvKeyStoreId()); + } + if (model.wasPropertyExplicitlySet("okvEndPointGroupName")) { + this.okvEndPointGroupName(model.getOkvEndPointGroupName()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { + this.fastStartFailOverLagLimitInSeconds( + model.getFastStartFailOverLagLimitInSeconds()); + } + if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { + this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( + String adminPassword, + Float computeCount, + Double dataStorageSizeInGbs, + String shardSpaceName, + Boolean isAutoScalingEnabled, + String cloudAutonomousVmClusterId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.shardSpaceName = shardSpaceName; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") Float computeCount, + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + Double dataStorageSizeInGbs, + @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") String shardSpaceName, + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + Boolean isAutoScalingEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + String cloudAutonomousVmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") String okvKeyStoreId, + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + String okvEndPointGroupName, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedAutonomousDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + Integer fastStartFailOverLagLimitInSeconds, + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.shardSpaceName = shardSpaceName; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + } + + /** Admin password for shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * Admin password for shard database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * Admin password for shard database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** The compute count for the shard database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the shard database. It has to be in multiples of 2. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the shard database. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * The shard space name for the shard database. Shard space for an existing shard cannot be + * changed once the shard is created. The shard space name is used when creating new shards. For + * user-defined sharding, every shard must have a unique shard space name. For system-defined + * sharding, a shard space name is not required. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") + private final String shardSpaceName; + + /** + * The shard space name for the shard database. Shard space for an existing shard cannot be + * changed once the shard is created. The shard space name is used when creating new shards. For + * user-defined sharding, every shard must have a unique shard space name. For system-defined + * sharding, a shard space name is not required. + * + * @return the value + */ + public String getShardSpaceName() { + return shardSpaceName; + } + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private final String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + * + * @return the value + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private final String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the shard. + * + * @return the value + */ + public String getOkvKeyStoreId() { + return okvKeyStoreId; + } + + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @return the value + */ + public String getOkvEndPointGroupName() { + return okvEndPointGroupName; + } + + /** The protection mode for the shard peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the shard peer. + * + * @return the value + */ + public DistributedAutonomousDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private final Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @return the value + */ + public Integer getFastStartFailOverLagLimitInSeconds() { + return fastStartFailOverLagLimitInSeconds; + } + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private final Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + * + * @return the value + */ + public Integer getStandbyMaintenanceBufferInDays() { + return standbyMaintenanceBufferInDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", shardSpaceName=").append(String.valueOf(this.shardSpaceName)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); + sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", fastStartFailOverLagLimitInSeconds=") + .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); + sb.append(", standbyMaintenanceBufferInDays=") + .append(String.valueOf(this.standbyMaintenanceBufferInDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails)) { + return false; + } + + CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails other = + (CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.shardSpaceName, other.shardSpaceName) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) + && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals( + this.fastStartFailOverLagLimitInSeconds, + other.fastStartFailOverLagLimitInSeconds) + && java.util.Objects.equals( + this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = + (result * PRIME) + + (this.shardSpaceName == null ? 43 : this.shardSpaceName.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); + result = + (result * PRIME) + + (this.okvEndPointGroupName == null + ? 43 + : this.okvEndPointGroupName.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.fastStartFailOverLagLimitInSeconds == null + ? 43 + : this.fastStartFailOverLagLimitInSeconds.hashCode()); + result = + (result * PRIME) + + (this.standbyMaintenanceBufferInDays == null + ? 43 + : this.standbyMaintenanceBufferInDays.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java new file mode 100644 index 00000000000..c08a83863d5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details for creating a distributed database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = CreateDistributedDatabaseCatalogDatabaseDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.class, + name = "XS_NEW_VAULT_AND_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.class, + name = "EXISTING_DB_HOME"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.class, + name = "XS_EXISTING_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.class, + name = "XD_EXISTING_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.class, + name = "XS_NEW_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDistributedDatabaseCatalogDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateDistributedDatabaseCatalogDatabaseDetails() { + 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("CreateDistributedDatabaseCatalogDatabaseDetails("); + 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 CreateDistributedDatabaseCatalogDatabaseDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogDatabaseDetails other = + (CreateDistributedDatabaseCatalogDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed database type. Use XS_EXISTING_CLUSTER for a database + * on Exascale Infrastructure that uses a pre-existing cluster. Use XS_NEW_CLUSTER for a + * database on Exascale Infrastructure that requires a new cluster created from scratch. Use + * XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault + * and cluster created from scratch. Use XD_EXISTING_CLUSTER for a database on Dedicated + * Infrastructure that uses a pre-existing cluster. Use EXISTING_DB_HOME for a database on a + * pre-existing database home. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + XsExistingCluster("XS_EXISTING_CLUSTER"), + XsNewCluster("XS_NEW_CLUSTER"), + XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), + XdExistingCluster("XD_EXISTING_CLUSTER"), + ExistingDbHome("EXISTING_DB_HOME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + map.put(v.getValue(), v); + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Source: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java new file mode 100644 index 00000000000..01cc7f7917b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java @@ -0,0 +1,461 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database catalog using a pre-existing Database Home. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails + extends CreateDistributedDatabaseCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails build() { + CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model = + new CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + this.dbHomeId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model) { + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + String dbHomeId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.dbHomeId = dbHomeId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") String dbHomeId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.dbHomeId = dbHomeId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails other = + (CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java new file mode 100644 index 00000000000..cdb0697b96f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java @@ -0,0 +1,461 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database catalog using an existing ExaDB-D VM cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails + extends CreateDistributedDatabaseCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails build() { + CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model = + new CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + this.vmClusterId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model) { + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + String vmClusterId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails other = + (CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails) o; + return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java new file mode 100644 index 00000000000..950e665132c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java @@ -0,0 +1,461 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database catalog using an existing ExaDB-XS VM cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails + extends CreateDistributedDatabaseCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** The admin password for the catalog associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with the distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails build() { + CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model = + new CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + this.vmClusterId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model) { + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + String vmClusterId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** The admin password for the catalog associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with the distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with the distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails other = + (CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails) o; + return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java new file mode 100644 index 00000000000..d47498685eb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java @@ -0,0 +1,167 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a Globally distributed database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public CreateDistributedDatabaseCatalogDetails( + CreateDistributedDatabaseCatalogReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateDistributedDatabaseCatalogReplicaDetails originalReplica; + + public Builder originalReplica( + CreateDistributedDatabaseCatalogReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** Details required to create data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the catalog. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogDetails build() { + CreateDistributedDatabaseCatalogDetails model = + new CreateDistributedDatabaseCatalogDetails( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogDetails model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateDistributedDatabaseCatalogReplicaDetails originalReplica; + + public CreateDistributedDatabaseCatalogReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** Details required to create data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * Details required to create data guard replicas for the catalog. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogDetails("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogDetails other = (CreateDistributedDatabaseCatalogDetails) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java new file mode 100644 index 00000000000..fef6051c996 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java @@ -0,0 +1,168 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create a catalog replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public CreateDistributedDatabaseCatalogReplicaDetails( + String name, CreateDistributedDatabaseCatalogDatabaseDetails database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private CreateDistributedDatabaseCatalogDatabaseDetails database; + + public Builder database(CreateDistributedDatabaseCatalogDatabaseDetails database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogReplicaDetails build() { + CreateDistributedDatabaseCatalogReplicaDetails model = + new CreateDistributedDatabaseCatalogReplicaDetails(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final CreateDistributedDatabaseCatalogDatabaseDetails database; + + public CreateDistributedDatabaseCatalogDatabaseDetails getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogReplicaDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogReplicaDetails other = + (CreateDistributedDatabaseCatalogReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java new file mode 100644 index 00000000000..e17958f1101 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java @@ -0,0 +1,547 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database catalog on a new ExaDB-XS VM cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails + extends CreateDistributedDatabaseCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @param exascaleDbStorageVaultId the value to set + * @return this builder + */ + public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.__explicitlySet__.add("exascaleDbStorageVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private VmClusterDetails vmClusterDetails; + + public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails build() { + CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model = + new CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.availabilityDomain, + this.exascaleDbStorageVaultId, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { + this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + String exascaleDbStorageVaultId, + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + String exascaleDbStorageVaultId, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The name of the availability domain that the distributed database catalog will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private final String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @return the value + */ + public String getExascaleDbStorageVaultId() { + return exascaleDbStorageVaultId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final VmClusterDetails vmClusterDetails; + + public VmClusterDetails getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", exascaleDbStorageVaultId=") + .append(String.valueOf(this.exascaleDbStorageVaultId)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails other = + (CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.exascaleDbStorageVaultId == null + ? 43 + : this.exascaleDbStorageVaultId.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java new file mode 100644 index 00000000000..688fc7fc461 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java @@ -0,0 +1,528 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database catalog on a new ExaDB-XS VM cluster and + * storage vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails + extends CreateDistributedDatabaseCatalogDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private DbStorageVaultDetails dbStorageVaultDetails; + + public Builder dbStorageVaultDetails(DbStorageVaultDetails dbStorageVaultDetails) { + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.__explicitlySet__.add("dbStorageVaultDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private VmClusterDetails vmClusterDetails; + + public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails build() { + CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails model = + new CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.availabilityDomain, + this.dbStorageVaultDetails, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { + this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + DbStorageVaultDetails dbStorageVaultDetails, + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + DbStorageVaultDetails dbStorageVaultDetails, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** The admin password for the catalog associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The name of the availability domain that the distributed database catalog will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private final DbStorageVaultDetails dbStorageVaultDetails; + + public DbStorageVaultDetails getDbStorageVaultDetails() { + return dbStorageVaultDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final VmClusterDetails vmClusterDetails; + + public VmClusterDetails getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails)) { + return false; + } + + CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails other = + (CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dbStorageVaultDetails == null + ? 43 + : this.dbStorageVaultDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java new file mode 100644 index 00000000000..f4762c714a1 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java @@ -0,0 +1,1270 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required for creation of the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "databaseVersion", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "scanListenerPort", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", + "catalogDetails", + "gsmSshPublicKey", + "dbBackupConfig", + "vcnNsgIds", + "freeformTags", + "definedTags" + }) + public CreateDistributedDatabaseDetails( + String compartmentId, + String displayName, + String databaseVersion, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer scanListenerPort, + Integer systemChunkCount, + Integer systemRaftReplicationUnitCount, + java.util.List compositeRaftShardSpaces, + java.util.List compositeDataGuardShardSpaces, + java.util.List systemRaftClusters, + CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases, + java.util.List userShardSpaces, + java.util.List catalogDetails, + String gsmSshPublicKey, + DistributedDbBackupConfig dbBackupConfig, + java.util.List vcnNsgIds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.databaseVersion = databaseVersion; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.scanListenerPort = scanListenerPort; + this.systemChunkCount = systemChunkCount; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.systemRaftClusters = systemRaftClusters; + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.userShardSpaces = userShardSpaces; + this.catalogDetails = catalogDetails; + this.gsmSshPublicKey = gsmSshPublicKey; + this.dbBackupConfig = dbBackupConfig; + this.vcnNsgIds = vcnNsgIds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoints associated with the Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoints associated with the Globally distributed database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** + * The listener port number for the Globally distributed database. The listener port number + * has to be unique for a customer tenancy across all distributed databases. Same port + * number should not be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener port number for the Globally distributed database. The listener port number + * has to be unique for a customer tenancy across all distributed databases. Same port + * number should not be re-used for any other distributed database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The TLS listener port number for the Globally distributed database. The TLS listener port + * number has to be unique for a customer tenancy across all distributed databases. Same + * port number should not be re-used for any other distributed database. For EXADB based + * distributed databases, tls is not supported hence the listenerPortTls is not needed to be + * provided in create payload. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed database. The TLS listener port + * number has to be unique for a customer tenancy across all distributed databases. Same + * port number should not be re-used for any other distributed database. For EXADB based + * distributed databases, tls is not supported hence the listenerPortTls is not needed to be + * provided in create payload. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** + * The ons local port number for the Globally distributed database. The onsPortLocal has to + * be unique for a customer tenancy across all distributed databases. Same port number + * should not be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * The ons local port number for the Globally distributed database. The onsPortLocal has to + * be unique for a customer tenancy across all distributed databases. Same port number + * should not be re-used for any other distributed database. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** + * The ons remote port number for the Globally distributed database. The onsPortRemote has + * to be unique for a customer tenancy across all distributed databases. Same port number + * should not be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * The ons remote port number for the Globally distributed database. The onsPortRemote has + * to be unique for a customer tenancy across all distributed databases. Same port number + * should not be re-used for any other distributed database. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** + * TCP SCAN listener port for new clusters to be created. Applicable only when shard and + * catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. Defaults to 1521 + * when not provided. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") + private Integer scanListenerPort; + + /** + * TCP SCAN listener port for new clusters to be created. Applicable only when shard and + * catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. Defaults to 1521 + * when not provided. + * + * @param scanListenerPort the value to set + * @return this builder + */ + public Builder scanListenerPort(Integer scanListenerPort) { + this.scanListenerPort = scanListenerPort; + this.__explicitlySet__.add("scanListenerPort"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder + */ + public Builder compositeRaftShardSpaces( + java.util.List compositeRaftShardSpaces) { + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.__explicitlySet__.add("compositeRaftShardSpaces"); + return this; + } + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @param compositeDataGuardShardSpaces the value to set + * @return this builder + */ + public Builder compositeDataGuardShardSpaces( + java.util.List + compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); + return this; + } + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @param systemRaftClusters the value to set + * @return this builder + */ + public Builder systemRaftClusters( + java.util.List systemRaftClusters) { + this.systemRaftClusters = systemRaftClusters; + this.__explicitlySet__.add("systemRaftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public Builder systemDataGuardDatabases( + CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases) { + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.__explicitlySet__.add("systemDataGuardDatabases"); + return this; + } + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @param userShardSpaces the value to set + * @return this builder + */ + public Builder userShardSpaces( + java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); + return this; + } + /** Collection of catalog details for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private java.util.List catalogDetails; + + /** + * Collection of catalog details for the Globally distributed database. + * + * @param catalogDetails the value to set + * @return this builder + */ + public Builder catalogDetails( + java.util.List catalogDetails) { + this.catalogDetails = catalogDetails; + this.__explicitlySet__.add("catalogDetails"); + return this; + } + /** The SSH public key for Global service manager instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") + private String gsmSshPublicKey; + + /** + * The SSH public key for Global service manager instances. + * + * @param gsmSshPublicKey the value to set + * @return this builder + */ + public Builder gsmSshPublicKey(String gsmSshPublicKey) { + this.gsmSshPublicKey = gsmSshPublicKey; + this.__explicitlySet__.add("gsmSshPublicKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + /** + * The list of network security group (NSG) details to be associated with the distributed + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the distributed + * database. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseDetails build() { + CreateDistributedDatabaseDetails model = + new CreateDistributedDatabaseDetails( + this.compartmentId, + this.displayName, + this.databaseVersion, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.scanListenerPort, + this.systemChunkCount, + this.systemRaftReplicationUnitCount, + this.compositeRaftShardSpaces, + this.compositeDataGuardShardSpaces, + this.systemRaftClusters, + this.systemDataGuardDatabases, + this.userShardSpaces, + this.catalogDetails, + this.gsmSshPublicKey, + this.dbBackupConfig, + this.vcnNsgIds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("scanListenerPort")) { + this.scanListenerPort(model.getScanListenerPort()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); + } + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); + } + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); + } + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); + } + if (model.wasPropertyExplicitlySet("catalogDetails")) { + this.catalogDetails(model.getCatalogDetails()); + } + if (model.wasPropertyExplicitlySet("gsmSshPublicKey")) { + this.gsmSshPublicKey(model.getGsmSshPublicKey()); + } + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Oracle Database version for the shards and catalog used in Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoints associated with the Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoints associated with the Globally distributed database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** + * The listener port number for the Globally distributed database. The listener port number has + * to be unique for a customer tenancy across all distributed databases. Same port number should + * not be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener port number for the Globally distributed database. The listener port number has + * to be unique for a customer tenancy across all distributed databases. Same port number should + * not be re-used for any other distributed database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The TLS listener port number for the Globally distributed database. The TLS listener port + * number has to be unique for a customer tenancy across all distributed databases. Same port + * number should not be re-used for any other distributed database. For EXADB based distributed + * databases, tls is not supported hence the listenerPortTls is not needed to be provided in + * create payload. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed database. The TLS listener port + * number has to be unique for a customer tenancy across all distributed databases. Same port + * number should not be re-used for any other distributed database. For EXADB based distributed + * databases, tls is not supported hence the listenerPortTls is not needed to be provided in + * create payload. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** + * The ons local port number for the Globally distributed database. The onsPortLocal has to be + * unique for a customer tenancy across all distributed databases. Same port number should not + * be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * The ons local port number for the Globally distributed database. The onsPortLocal has to be + * unique for a customer tenancy across all distributed databases. Same port number should not + * be re-used for any other distributed database. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** + * The ons remote port number for the Globally distributed database. The onsPortRemote has to be + * unique for a customer tenancy across all distributed databases. Same port number should not + * be re-used for any other distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * The ons remote port number for the Globally distributed database. The onsPortRemote has to be + * unique for a customer tenancy across all distributed databases. Same port number should not + * be re-used for any other distributed database. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** + * TCP SCAN listener port for new clusters to be created. Applicable only when shard and catalog + * source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. Defaults to 1521 when not + * provided. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") + private final Integer scanListenerPort; + + /** + * TCP SCAN listener port for new clusters to be created. Applicable only when shard and catalog + * source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. Defaults to 1521 when not + * provided. + * + * @return the value + */ + public Integer getScanListenerPort() { + return scanListenerPort; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @return the value + */ + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; + } + + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @return the value + */ + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; + } + + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @return the value + */ + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public CreateSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { + return systemDataGuardDatabases; + } + + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @return the value + */ + public java.util.List getUserShardSpaces() { + return userShardSpaces; + } + + /** Collection of catalog details for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private final java.util.List catalogDetails; + + /** + * Collection of catalog details for the Globally distributed database. + * + * @return the value + */ + public java.util.List getCatalogDetails() { + return catalogDetails; + } + + /** The SSH public key for Global service manager instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") + private final String gsmSshPublicKey; + + /** + * The SSH public key for Global service manager instances. + * + * @return the value + */ + public String getGsmSshPublicKey() { + return gsmSshPublicKey; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedDbBackupConfig dbBackupConfig; + + public DistributedDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + /** + * The list of network security group (NSG) details to be associated with the distributed + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the distributed + * database. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", scanListenerPort=").append(String.valueOf(this.scanListenerPort)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", compositeRaftShardSpaces=") + .append(String.valueOf(this.compositeRaftShardSpaces)); + sb.append(", compositeDataGuardShardSpaces=") + .append(String.valueOf(this.compositeDataGuardShardSpaces)); + sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); + sb.append(", systemDataGuardDatabases=") + .append(String.valueOf(this.systemDataGuardDatabases)); + sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); + sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); + sb.append(", gsmSshPublicKey=").append(String.valueOf(this.gsmSshPublicKey)); + sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseDetails)) { + return false; + } + + CreateDistributedDatabaseDetails other = (CreateDistributedDatabaseDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.scanListenerPort, other.scanListenerPort) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals( + this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) + && java.util.Objects.equals( + this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) + && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) + && java.util.Objects.equals( + this.systemDataGuardDatabases, other.systemDataGuardDatabases) + && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) + && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) + && java.util.Objects.equals(this.gsmSshPublicKey, other.gsmSshPublicKey) + && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = + (result * PRIME) + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); + result = + (result * PRIME) + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); + result = + (result * PRIME) + + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); + result = + (result * PRIME) + + (this.gsmSshPublicKey == null ? 43 : this.gsmSshPublicKey.hashCode()); + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java new file mode 100644 index 00000000000..c8856482843 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java @@ -0,0 +1,393 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required for private endpoint creation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabasePrivateEndpointDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "subnetId", + "displayName", + "description", + "vcnNsgIds", + "freeformTags", + "definedTags" + }) + public CreateDistributedDatabasePrivateEndpointDetails( + String compartmentId, + String subnetId, + String displayName, + String description, + java.util.List vcnNsgIds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.subnetId = subnetId; + this.displayName = displayName; + this.description = description; + this.vcnNsgIds = vcnNsgIds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Identifier of the compartment where private endpoint is to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Identifier of the compartment where private endpoint is to be created. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Identifier of the customer subnet against which private endpoint is to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Identifier of the customer subnet against which private endpoint is to be created. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** Private endpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Private endpoint display name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The list of network security group (NSG) details to be associated with the private + * endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the private + * endpoint. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabasePrivateEndpointDetails build() { + CreateDistributedDatabasePrivateEndpointDetails model = + new CreateDistributedDatabasePrivateEndpointDetails( + this.compartmentId, + this.subnetId, + this.displayName, + this.description, + this.vcnNsgIds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabasePrivateEndpointDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Identifier of the compartment where private endpoint is to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Identifier of the compartment where private endpoint is to be created. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Identifier of the customer subnet against which private endpoint is to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Identifier of the customer subnet against which private endpoint is to be created. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** Private endpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Private endpoint display name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The list of network security group (NSG) details to be associated with the private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details to be associated with the private endpoint. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabasePrivateEndpointDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabasePrivateEndpointDetails)) { + return false; + } + + CreateDistributedDatabasePrivateEndpointDetails other = + (CreateDistributedDatabasePrivateEndpointDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java new file mode 100644 index 00000000000..df231fd91e3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details for creating a distributed database shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = CreateDistributedDatabaseShardDatabaseDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.class, + name = "XS_NEW_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.class, + name = "XS_NEW_VAULT_AND_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.class, + name = "XS_EXISTING_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.class, + name = "EXISTING_DB_HOME"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.class, + name = "XD_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDistributedDatabaseShardDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateDistributedDatabaseShardDatabaseDetails() { + 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("CreateDistributedDatabaseShardDatabaseDetails("); + 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 CreateDistributedDatabaseShardDatabaseDetails)) { + return false; + } + + CreateDistributedDatabaseShardDatabaseDetails other = + (CreateDistributedDatabaseShardDatabaseDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed database type. Use XS_EXISTING_CLUSTER for a database + * on Exascale Infrastructure that uses a pre-existing cluster. Use XS_NEW_CLUSTER for a + * database on Exascale Infrastructure that requires a new cluster created from scratch. Use + * XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault + * and cluster created from scratch. Use XD_EXISTING_CLUSTER for a database on Dedicated + * Infrastructure that uses a pre-existing cluster. Use EXISTING_DB_HOME for a database on a + * pre-existing database home. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + XsExistingCluster("XS_EXISTING_CLUSTER"), + XsNewCluster("XS_NEW_CLUSTER"), + XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), + XdExistingCluster("XD_EXISTING_CLUSTER"), + ExistingDbHome("EXISTING_DB_HOME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + map.put(v.getValue(), v); + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Source: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java new file mode 100644 index 00000000000..db344fd4019 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java @@ -0,0 +1,460 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database shard using a pre-existing Database Home.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseShardDatabaseWithDbHomeDetails + extends CreateDistributedDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails build() { + CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model = + new CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + this.dbHomeId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model) { + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + String dbHomeId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.dbHomeId = dbHomeId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") String dbHomeId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.dbHomeId = dbHomeId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseShardDatabaseWithDbHomeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithDbHomeDetails)) { + return false; + } + + CreateDistributedDatabaseShardDatabaseWithDbHomeDetails other = + (CreateDistributedDatabaseShardDatabaseWithDbHomeDetails) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java new file mode 100644 index 00000000000..fc9c7778640 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java @@ -0,0 +1,461 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database shard using an existing ExaDB-D VM cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseShardDatabaseWithExadbXdDetails + extends CreateDistributedDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails build() { + CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model = + new CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + this.vmClusterId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model) { + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + String vmClusterId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseShardDatabaseWithExadbXdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithExadbXdDetails)) { + return false; + } + + CreateDistributedDatabaseShardDatabaseWithExadbXdDetails other = + (CreateDistributedDatabaseShardDatabaseWithExadbXdDetails) o; + return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java new file mode 100644 index 00000000000..4a63a5920ca --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java @@ -0,0 +1,461 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database shard using an existing ExaDB-XS VM cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseShardDatabaseWithExadbXsDetails + extends CreateDistributedDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails build() { + CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model = + new CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + this.vmClusterId, + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model) { + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + String vmClusterId, + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.vmClusterId = vmClusterId; + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseShardDatabaseWithExadbXsDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithExadbXsDetails)) { + return false; + } + + CreateDistributedDatabaseShardDatabaseWithExadbXsDetails other = + (CreateDistributedDatabaseShardDatabaseWithExadbXsDetails) o; + return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java new file mode 100644 index 00000000000..6597dc04a3e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java @@ -0,0 +1,549 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database shard on a new ExaDB-XS VM cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseShardWithExadbXsNewClusterDetails + extends CreateDistributedDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The name of the availability domain that the distributed database shard will be located + * in like yKoY:US-ASHBURN-AD-3. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located + * in like yKoY:US-ASHBURN-AD-3. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @param exascaleDbStorageVaultId the value to set + * @return this builder + */ + public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.__explicitlySet__.add("exascaleDbStorageVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private VmClusterDetails vmClusterDetails; + + public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails build() { + CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model = + new CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.availabilityDomain, + this.exascaleDbStorageVaultId, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { + this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + String exascaleDbStorageVaultId, + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + String exascaleDbStorageVaultId, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The name of the availability domain that the distributed database shard will be located in + * like yKoY:US-ASHBURN-AD-3. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located in + * like yKoY:US-ASHBURN-AD-3. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private final String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @return the value + */ + public String getExascaleDbStorageVaultId() { + return exascaleDbStorageVaultId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final VmClusterDetails vmClusterDetails; + + public VmClusterDetails getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseShardWithExadbXsNewClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", exascaleDbStorageVaultId=") + .append(String.valueOf(this.exascaleDbStorageVaultId)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseShardWithExadbXsNewClusterDetails)) { + return false; + } + + CreateDistributedDatabaseShardWithExadbXsNewClusterDetails other = + (CreateDistributedDatabaseShardWithExadbXsNewClusterDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.exascaleDbStorageVaultId == null + ? 43 + : this.exascaleDbStorageVaultId.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java new file mode 100644 index 00000000000..88313709ac5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java @@ -0,0 +1,527 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Configuration for creating a distributed database shard on a new ExaDB-XS VM cluster and storage + * vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails + extends CreateDistributedDatabaseShardDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The name of the availability domain that the distributed database shard will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private DbStorageVaultDetails dbStorageVaultDetails; + + public Builder dbStorageVaultDetails(DbStorageVaultDetails dbStorageVaultDetails) { + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.__explicitlySet__.add("dbStorageVaultDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private VmClusterDetails vmClusterDetails; + + public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails build() { + CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails model = + new CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + this.adminPassword, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.availabilityDomain, + this.dbStorageVaultDetails, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy( + CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails model) { + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { + this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + String adminPassword, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String availabilityDomain, + DbStorageVaultDetails dbStorageVaultDetails, + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + DbStorageVaultDetails dbStorageVaultDetails, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(); + this.adminPassword = adminPassword; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** The admin password for the shard associated with Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The name of the availability domain that the distributed database shard will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private final DbStorageVaultDetails dbStorageVaultDetails; + + public DbStorageVaultDetails getDbStorageVaultDetails() { + return dbStorageVaultDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final VmClusterDetails vmClusterDetails; + + public VmClusterDetails getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", adminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails)) { + return false; + } + + CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails other = + (CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails) o; + return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dbStorageVaultDetails == null + ? 43 + : this.dbStorageVaultDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java new file mode 100644 index 00000000000..c01e239e7de --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java @@ -0,0 +1,166 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create system data guard shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSystemDataGuardDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSystemDataGuardDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public CreateSystemDataGuardDatabaseDetails( + CreateSystemDataGuardReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateSystemDataGuardReplicaDetails originalReplica; + + public Builder originalReplica(CreateSystemDataGuardReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details required to create system data guard replicas. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details required to create system data guard replicas. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSystemDataGuardDatabaseDetails build() { + CreateSystemDataGuardDatabaseDetails model = + new CreateSystemDataGuardDatabaseDetails( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSystemDataGuardDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateSystemDataGuardReplicaDetails originalReplica; + + public CreateSystemDataGuardReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details required to create system data guard replicas. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details required to create system data guard replicas. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSystemDataGuardDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSystemDataGuardDatabaseDetails)) { + return false; + } + + CreateSystemDataGuardDatabaseDetails other = (CreateSystemDataGuardDatabaseDetails) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java new file mode 100644 index 00000000000..409ff702445 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java @@ -0,0 +1,180 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create system data guard replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSystemDataGuardReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSystemDataGuardReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public CreateSystemDataGuardReplicaDetails( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSystemDataGuardReplicaDetails build() { + CreateSystemDataGuardReplicaDetails model = + new CreateSystemDataGuardReplicaDetails(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSystemDataGuardReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSystemDataGuardReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSystemDataGuardReplicaDetails)) { + return false; + } + + CreateSystemDataGuardReplicaDetails other = (CreateSystemDataGuardReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java new file mode 100644 index 00000000000..4c0e44cf01c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.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.distributeddatabasev26.model; + +/** + * Details required to create system raft cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSystemRaftClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSystemRaftClusterDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public CreateSystemRaftClusterDetails( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases( + java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSystemRaftClusterDetails build() { + CreateSystemRaftClusterDetails model = + new CreateSystemRaftClusterDetails( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSystemRaftClusterDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + map.put(v.getValue(), v); + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuMode: " + key); + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSystemRaftClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSystemRaftClusterDetails)) { + return false; + } + + CreateSystemRaftClusterDetails other = (CreateSystemRaftClusterDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java new file mode 100644 index 00000000000..43b54145fb2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details required to create user shard space.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateUserShardSpaceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateUserShardSpaceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) + public CreateUserShardSpaceDetails( + String name, + CreateUserShardSpaceReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private CreateUserShardSpaceReplicaDetails originalReplica; + + public Builder originalReplica(CreateUserShardSpaceReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica for the user shard space being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replica for the user shard space being created. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateUserShardSpaceDetails build() { + CreateUserShardSpaceDetails model = + new CreateUserShardSpaceDetails( + this.name, this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateUserShardSpaceDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of user shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of user shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final CreateUserShardSpaceReplicaDetails originalReplica; + + public CreateUserShardSpaceReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica for the user shard space being created. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replica for the user shard space being created. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateUserShardSpaceDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateUserShardSpaceDetails)) { + return false; + } + + CreateUserShardSpaceDetails other = (CreateUserShardSpaceDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java new file mode 100644 index 00000000000..3e142b47726 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java @@ -0,0 +1,167 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details required to create user shard space replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateUserShardSpaceReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateUserShardSpaceReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public CreateUserShardSpaceReplicaDetails( + String name, CreateDistributedDatabaseShardDatabaseDetails database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private CreateDistributedDatabaseShardDatabaseDetails database; + + public Builder database(CreateDistributedDatabaseShardDatabaseDetails database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateUserShardSpaceReplicaDetails build() { + CreateUserShardSpaceReplicaDetails model = + new CreateUserShardSpaceReplicaDetails(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateUserShardSpaceReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of user shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of user shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final CreateDistributedDatabaseShardDatabaseDetails database; + + public CreateDistributedDatabaseShardDatabaseDetails getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateUserShardSpaceReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateUserShardSpaceReplicaDetails)) { + return false; + } + + CreateUserShardSpaceReplicaDetails other = (CreateUserShardSpaceReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java new file mode 100644 index 00000000000..da0bba1d489 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java @@ -0,0 +1,386 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of the request to create exascale db vault storage for shard or catalog of the + * distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbStorageVaultDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DbStorageVaultDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "highCapacityDatabaseStorage", + "additionalFlashCacheInPercent", + "subscriptionId", + "isAutoscaleEnabled", + "autoscaleLimitInGBs" + }) + public DbStorageVaultDetails( + String compartmentId, + Integer highCapacityDatabaseStorage, + Integer additionalFlashCacheInPercent, + String subscriptionId, + Boolean isAutoscaleEnabled, + Integer autoscaleLimitInGBs) { + super(); + this.compartmentId = compartmentId; + this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; + this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; + this.subscriptionId = subscriptionId; + this.isAutoscaleEnabled = isAutoscaleEnabled; + this.autoscaleLimitInGBs = autoscaleLimitInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Total storage capacity in GB for vault storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") + private Integer highCapacityDatabaseStorage; + + /** + * Total storage capacity in GB for vault storage. + * + * @param highCapacityDatabaseStorage the value to set + * @return this builder + */ + public Builder highCapacityDatabaseStorage(Integer highCapacityDatabaseStorage) { + this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; + this.__explicitlySet__.add("highCapacityDatabaseStorage"); + return this; + } + /** The size of additional Flash Cache in percentage of High Capacity database storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") + private Integer additionalFlashCacheInPercent; + + /** + * The size of additional Flash Cache in percentage of High Capacity database storage. + * + * @param additionalFlashCacheInPercent the value to set + * @return this builder + */ + public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPercent) { + this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; + this.__explicitlySet__.add("additionalFlashCacheInPercent"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default + * value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") + private Boolean isAutoscaleEnabled; + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default + * value is {@code FALSE}. + * + * @param isAutoscaleEnabled the value to set + * @return this builder + */ + public Builder isAutoscaleEnabled(Boolean isAutoscaleEnabled) { + this.isAutoscaleEnabled = isAutoscaleEnabled; + this.__explicitlySet__.add("isAutoscaleEnabled"); + return this; + } + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale + * when auto scaling is enabled for the Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") + private Integer autoscaleLimitInGBs; + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale + * when auto scaling is enabled for the Database Storage Vault. + * + * @param autoscaleLimitInGBs the value to set + * @return this builder + */ + public Builder autoscaleLimitInGBs(Integer autoscaleLimitInGBs) { + this.autoscaleLimitInGBs = autoscaleLimitInGBs; + this.__explicitlySet__.add("autoscaleLimitInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbStorageVaultDetails build() { + DbStorageVaultDetails model = + new DbStorageVaultDetails( + this.compartmentId, + this.highCapacityDatabaseStorage, + this.additionalFlashCacheInPercent, + this.subscriptionId, + this.isAutoscaleEnabled, + this.autoscaleLimitInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbStorageVaultDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("highCapacityDatabaseStorage")) { + this.highCapacityDatabaseStorage(model.getHighCapacityDatabaseStorage()); + } + if (model.wasPropertyExplicitlySet("additionalFlashCacheInPercent")) { + this.additionalFlashCacheInPercent(model.getAdditionalFlashCacheInPercent()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("isAutoscaleEnabled")) { + this.isAutoscaleEnabled(model.getIsAutoscaleEnabled()); + } + if (model.wasPropertyExplicitlySet("autoscaleLimitInGBs")) { + this.autoscaleLimitInGBs(model.getAutoscaleLimitInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Total storage capacity in GB for vault storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") + private final Integer highCapacityDatabaseStorage; + + /** + * Total storage capacity in GB for vault storage. + * + * @return the value + */ + public Integer getHighCapacityDatabaseStorage() { + return highCapacityDatabaseStorage; + } + + /** The size of additional Flash Cache in percentage of High Capacity database storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") + private final Integer additionalFlashCacheInPercent; + + /** + * The size of additional Flash Cache in percentage of High Capacity database storage. + * + * @return the value + */ + public Integer getAdditionalFlashCacheInPercent() { + return additionalFlashCacheInPercent; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value + * is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") + private final Boolean isAutoscaleEnabled; + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value + * is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoscaleEnabled() { + return isAutoscaleEnabled; + } + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when + * auto scaling is enabled for the Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") + private final Integer autoscaleLimitInGBs; + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when + * auto scaling is enabled for the Database Storage Vault. + * + * @return the value + */ + public Integer getAutoscaleLimitInGBs() { + return autoscaleLimitInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbStorageVaultDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", highCapacityDatabaseStorage=") + .append(String.valueOf(this.highCapacityDatabaseStorage)); + sb.append(", additionalFlashCacheInPercent=") + .append(String.valueOf(this.additionalFlashCacheInPercent)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", isAutoscaleEnabled=").append(String.valueOf(this.isAutoscaleEnabled)); + sb.append(", autoscaleLimitInGBs=").append(String.valueOf(this.autoscaleLimitInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbStorageVaultDetails)) { + return false; + } + + DbStorageVaultDetails other = (DbStorageVaultDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.highCapacityDatabaseStorage, other.highCapacityDatabaseStorage) + && java.util.Objects.equals( + this.additionalFlashCacheInPercent, other.additionalFlashCacheInPercent) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.isAutoscaleEnabled, other.isAutoscaleEnabled) + && java.util.Objects.equals(this.autoscaleLimitInGBs, other.autoscaleLimitInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.highCapacityDatabaseStorage == null + ? 43 + : this.highCapacityDatabaseStorage.hashCode()); + result = + (result * PRIME) + + (this.additionalFlashCacheInPercent == null + ? 43 + : this.additionalFlashCacheInPercent.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.isAutoscaleEnabled == null + ? 43 + : this.isAutoscaleEnabled.hashCode()); + result = + (result * PRIME) + + (this.autoscaleLimitInGBs == null + ? 43 + : this.autoscaleLimitInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java new file mode 100644 index 00000000000..f14a9455d1b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java @@ -0,0 +1,2026 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "databaseVersion", + "lifecycleState", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", + "lifecycleDetails", + "connectionStrings", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "dbWorkloadType", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "latestGsmImage", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", + "catalogDetails", + "gsmDetails", + "gdsControlNodeDetails", + "dbBackupConfig", + "autoResourceManagementConfig", + "vcnNsgIds", + "metadata", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedAutonomousDatabase( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String databaseVersion, + LifecycleState lifecycleState, + ShardingMethod shardingMethod, + ReplicationMethod replicationMethod, + DbDeploymentType dbDeploymentType, + String lifecycleDetails, + DistributedAutonomousDatabaseConnectionString connectionStrings, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + DbWorkloadType dbWorkloadType, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer systemChunkCount, + Integer systemRaftReplicationUnitCount, + DistributedAutonomousDatabaseGsmImage latestGsmImage, + java.util.List compositeRaftShardSpaces, + java.util.List compositeDataGuardShardSpaces, + java.util.List systemRaftClusters, + AutonomousSystemDataGuardDatabase systemDataGuardDatabases, + java.util.List userShardSpaces, + java.util.List catalogDetails, + java.util.List gsmDetails, + java.util.List gdsControlNodeDetails, + DistributedAutonomousDbBackupConfig dbBackupConfig, + AutoResourceManagementConfigurationDetails autoResourceManagementConfig, + java.util.List vcnNsgIds, + DistributedAutonomousDbMetadata metadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.databaseVersion = databaseVersion; + this.lifecycleState = lifecycleState; + this.shardingMethod = shardingMethod; + this.replicationMethod = replicationMethod; + this.dbDeploymentType = dbDeploymentType; + this.lifecycleDetails = lifecycleDetails; + this.connectionStrings = connectionStrings; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.systemChunkCount = systemChunkCount; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.latestGsmImage = latestGsmImage; + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.systemRaftClusters = systemRaftClusters; + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.userShardSpaces = userShardSpaces; + this.catalogDetails = catalogDetails; + this.gsmDetails = gsmDetails; + this.gdsControlNodeDetails = gdsControlNodeDetails; + this.dbBackupConfig = dbBackupConfig; + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.vcnNsgIds = vcnNsgIds; + this.metadata = metadata; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 + * formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Lifecycle states for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle states for the Globally distributed autonomous database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Sharding methods for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed autonomous database. + * + * @param shardingMethod the value to set + * @return this builder + */ + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); + return this; + } + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft + * based replication. With RAFT replication, shards cannot have peers details set on them. + * In case shards need to have peers, please do not set RAFT replicationMethod. For all non + * RAFT replication cases (with or without peers), please set replicationMethod as DG or do + * not set any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft + * based replication. With RAFT replication, shards cannot have peers details set on them. + * In case shards need to have peers, please do not set RAFT replicationMethod. For all non + * RAFT replication cases (with or without peers), please set replicationMethod as DG or do + * not set any value for replicationMethod. + * + * @param replicationMethod the value to set + * @return this builder + */ + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** The distributed autonomous database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private DbDeploymentType dbDeploymentType; + + /** + * The distributed autonomous database deployment type. + * + * @param dbDeploymentType the value to set + * @return this builder + */ + public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + this.__explicitlySet__.add("dbDeploymentType"); + return this; + } + /** The lifecycleDetails for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed autonomous database. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private DistributedAutonomousDatabaseConnectionString connectionStrings; + + public Builder connectionStrings( + DistributedAutonomousDatabaseConnectionString connectionStrings) { + this.connectionStrings = connectionStrings; + this.__explicitlySet__.add("connectionStrings"); + return this; + } + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** Possible workload types. Currently only OLTP workload type is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DbWorkloadType dbWorkloadType; + + /** + * Possible workload types. Currently only OLTP workload type is supported. + * + * @param dbWorkloadType the value to set + * @return this builder + */ + public Builder dbWorkloadType(DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** The listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The TLS listener port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed autonomous database. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** Ons local port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * Ons local port number for Globally distributed autonomous database. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** Ons remote port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * Ons remote port number for Globally distributed autonomous database. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") + private DistributedAutonomousDatabaseGsmImage latestGsmImage; + + public Builder latestGsmImage(DistributedAutonomousDatabaseGsmImage latestGsmImage) { + this.latestGsmImage = latestGsmImage; + this.__explicitlySet__.add("latestGsmImage"); + return this; + } + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder + */ + public Builder compositeRaftShardSpaces( + java.util.List compositeRaftShardSpaces) { + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.__explicitlySet__.add("compositeRaftShardSpaces"); + return this; + } + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @param compositeDataGuardShardSpaces the value to set + * @return this builder + */ + public Builder compositeDataGuardShardSpaces( + java.util.List + compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); + return this; + } + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @param systemRaftClusters the value to set + * @return this builder + */ + public Builder systemRaftClusters( + java.util.List systemRaftClusters) { + this.systemRaftClusters = systemRaftClusters; + this.__explicitlySet__.add("systemRaftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private AutonomousSystemDataGuardDatabase systemDataGuardDatabases; + + public Builder systemDataGuardDatabases( + AutonomousSystemDataGuardDatabase systemDataGuardDatabases) { + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.__explicitlySet__.add("systemDataGuardDatabases"); + return this; + } + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @param userShardSpaces the value to set + * @return this builder + */ + public Builder userShardSpaces(java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); + return this; + } + /** Catalog details associated with the distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private java.util.List catalogDetails; + + /** + * Catalog details associated with the distributed autonomous database. + * + * @param catalogDetails the value to set + * @return this builder + */ + public Builder catalogDetails( + java.util.List catalogDetails) { + this.catalogDetails = catalogDetails; + this.__explicitlySet__.add("catalogDetails"); + return this; + } + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") + private java.util.List gsmDetails; + + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous + * database. + * + * @param gsmDetails the value to set + * @return this builder + */ + public Builder gsmDetails(java.util.List gsmDetails) { + this.gsmDetails = gsmDetails; + this.__explicitlySet__.add("gsmDetails"); + return this; + } + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") + private java.util.List gdsControlNodeDetails; + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * autonomous database. + * + * @param gdsControlNodeDetails the value to set + * @return this builder + */ + public Builder gdsControlNodeDetails( + java.util.List gdsControlNodeDetails) { + this.gdsControlNodeDetails = gdsControlNodeDetails; + this.__explicitlySet__.add("gdsControlNodeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedAutonomousDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public Builder autoResourceManagementConfig( + AutoResourceManagementConfigurationDetails autoResourceManagementConfig) { + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.__explicitlySet__.add("autoResourceManagementConfig"); + return this; + } + /** + * The list of network security group (NSG) details associated with the distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the distributed + * autonomous database. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabase build() { + DistributedAutonomousDatabase model = + new DistributedAutonomousDatabase( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.databaseVersion, + this.lifecycleState, + this.shardingMethod, + this.replicationMethod, + this.dbDeploymentType, + this.lifecycleDetails, + this.connectionStrings, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.dbWorkloadType, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.systemChunkCount, + this.systemRaftReplicationUnitCount, + this.latestGsmImage, + this.compositeRaftShardSpaces, + this.compositeDataGuardShardSpaces, + this.systemRaftClusters, + this.systemDataGuardDatabases, + this.userShardSpaces, + this.catalogDetails, + this.gsmDetails, + this.gdsControlNodeDetails, + this.dbBackupConfig, + this.autoResourceManagementConfig, + this.vcnNsgIds, + this.metadata, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabase model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("shardingMethod")) { + this.shardingMethod(model.getShardingMethod()); + } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("dbDeploymentType")) { + this.dbDeploymentType(model.getDbDeploymentType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("connectionStrings")) { + this.connectionStrings(model.getConnectionStrings()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("latestGsmImage")) { + this.latestGsmImage(model.getLatestGsmImage()); + } + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); + } + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); + } + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); + } + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); + } + if (model.wasPropertyExplicitlySet("catalogDetails")) { + this.catalogDetails(model.getCatalogDetails()); + } + if (model.wasPropertyExplicitlySet("gsmDetails")) { + this.gsmDetails(model.getGsmDetails()); + } + if (model.wasPropertyExplicitlySet("gdsControlNodeDetails")) { + this.gdsControlNodeDetails(model.getGdsControlNodeDetails()); + } + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Lifecycle states for the Globally distributed autonomous database. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Lifecycle states for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle states for the Globally distributed autonomous database. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Sharding methods for the Globally distributed autonomous database. */ + public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { + User("USER"), + System("SYSTEM"), + Composite("COMPOSITE"), + + /** + * 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(ShardingMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShardingMethod v : ShardingMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShardingMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShardingMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShardingMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Sharding methods for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private final ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed autonomous database. + * + * @return the value + */ + public ShardingMethod getShardingMethod() { + return shardingMethod; + } + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { + Raft("RAFT"), + Dg("DG"), + + /** + * 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(ReplicationMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationMethod v : ReplicationMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + * + * @return the value + */ + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** The distributed autonomous database deployment type. */ + public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { + AdbD("ADB_D"), + + /** + * 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(DbDeploymentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbDeploymentType v : DbDeploymentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbDeploymentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbDeploymentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbDeploymentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The distributed autonomous database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private final DbDeploymentType dbDeploymentType; + + /** + * The distributed autonomous database deployment type. + * + * @return the value + */ + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; + } + + /** The lifecycleDetails for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed autonomous database. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private final DistributedAutonomousDatabaseConnectionString connectionStrings; + + public DistributedAutonomousDatabaseConnectionString getConnectionStrings() { + return connectionStrings; + } + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** Possible workload types. Currently only OLTP workload type is supported. */ + public enum DbWorkloadType implements com.oracle.bmc.http.internal.BmcEnum { + Oltp("OLTP"), + Dw("DW"), + + /** + * 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(DbWorkloadType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbWorkloadType v : DbWorkloadType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbWorkloadType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbWorkloadType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbWorkloadType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Possible workload types. Currently only OLTP workload type is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private final DbWorkloadType dbWorkloadType; + + /** + * Possible workload types. Currently only OLTP workload type is supported. + * + * @return the value + */ + public DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** The listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The TLS listener port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed autonomous database. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** Ons local port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * Ons local port number for Globally distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** Ons remote port number for Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * Ons remote port number for Globally distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") + private final DistributedAutonomousDatabaseGsmImage latestGsmImage; + + public DistributedAutonomousDatabaseGsmImage getLatestGsmImage() { + return latestGsmImage; + } + + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @return the value + */ + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; + } + + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @return the value + */ + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; + } + + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @return the value + */ + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final AutonomousSystemDataGuardDatabase systemDataGuardDatabases; + + public AutonomousSystemDataGuardDatabase getSystemDataGuardDatabases() { + return systemDataGuardDatabases; + } + + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @return the value + */ + public java.util.List getUserShardSpaces() { + return userShardSpaces; + } + + /** Catalog details associated with the distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private final java.util.List catalogDetails; + + /** + * Catalog details associated with the distributed autonomous database. + * + * @return the value + */ + public java.util.List getCatalogDetails() { + return catalogDetails; + } + + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") + private final java.util.List gsmDetails; + + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous database. + * + * @return the value + */ + public java.util.List getGsmDetails() { + return gsmDetails; + } + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") + private final java.util.List gdsControlNodeDetails; + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * autonomous database. + * + * @return the value + */ + public java.util.List getGdsControlNodeDetails() { + return gdsControlNodeDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedAutonomousDbBackupConfig dbBackupConfig; + + public DistributedAutonomousDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { + return autoResourceManagementConfig; + } + + /** + * The list of network security group (NSG) details associated with the distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the distributed autonomous + * database. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabase("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", dbWorkloadType=").append(String.valueOf(this.dbWorkloadType)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", latestGsmImage=").append(String.valueOf(this.latestGsmImage)); + sb.append(", compositeRaftShardSpaces=") + .append(String.valueOf(this.compositeRaftShardSpaces)); + sb.append(", compositeDataGuardShardSpaces=") + .append(String.valueOf(this.compositeDataGuardShardSpaces)); + sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); + sb.append(", systemDataGuardDatabases=") + .append(String.valueOf(this.systemDataGuardDatabases)); + sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); + sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); + sb.append(", gsmDetails=").append(String.valueOf(this.gsmDetails)); + sb.append(", gdsControlNodeDetails=").append(String.valueOf(this.gdsControlNodeDetails)); + sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(", autoResourceManagementConfig=") + .append(String.valueOf(this.autoResourceManagementConfig)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabase)) { + return false; + } + + DistributedAutonomousDatabase other = (DistributedAutonomousDatabase) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) + && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.dbWorkloadType, other.dbWorkloadType) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals(this.latestGsmImage, other.latestGsmImage) + && java.util.Objects.equals( + this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) + && java.util.Objects.equals( + this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) + && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) + && java.util.Objects.equals( + this.systemDataGuardDatabases, other.systemDataGuardDatabases) + && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) + && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) + && java.util.Objects.equals(this.gsmDetails, other.gsmDetails) + && java.util.Objects.equals(this.gdsControlNodeDetails, other.gdsControlNodeDetails) + && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && java.util.Objects.equals( + this.autoResourceManagementConfig, other.autoResourceManagementConfig) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.connectionStrings == null ? 43 : this.connectionStrings.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = + (result * PRIME) + + (this.dbWorkloadType == null ? 43 : this.dbWorkloadType.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = + (result * PRIME) + + (this.latestGsmImage == null ? 43 : this.latestGsmImage.hashCode()); + result = + (result * PRIME) + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); + result = + (result * PRIME) + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); + result = + (result * PRIME) + + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); + result = (result * PRIME) + (this.gsmDetails == null ? 43 : this.gsmDetails.hashCode()); + result = + (result * PRIME) + + (this.gdsControlNodeDetails == null + ? 43 + : this.gdsControlNodeDetails.hashCode()); + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = + (result * PRIME) + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java new file mode 100644 index 00000000000..c14126e8859 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java @@ -0,0 +1,589 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Automatic resource management configuration details for the Globally distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseAutoResourceManagementDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseAutoResourceManagementDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "coolOffPeriodInMinutes", + "maxMoveRuAttempts", + "maxMoveRuUnit", + "mode", + "actionType", + "notificationTopicIds", + "streamIds" + }) + public DistributedAutonomousDatabaseAutoResourceManagementDetails( + Boolean isEnabled, + Integer coolOffPeriodInMinutes, + Integer maxMoveRuAttempts, + MaxMoveRuUnit maxMoveRuUnit, + Mode mode, + ActionType actionType, + java.util.List notificationTopicIds, + java.util.List streamIds) { + super(); + this.isEnabled = isEnabled; + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.maxMoveRuUnit = maxMoveRuUnit; + this.mode = mode; + this.actionType = actionType; + this.notificationTopicIds = notificationTopicIds; + this.streamIds = streamIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @param coolOffPeriodInMinutes the value to set + * @return this builder + */ + public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.__explicitlySet__.add("coolOffPeriodInMinutes"); + return this; + } + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @param maxMoveRuAttempts the value to set + * @return this builder + */ + public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.__explicitlySet__.add("maxMoveRuAttempts"); + return this; + } + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @param maxMoveRuUnit the value to set + * @return this builder + */ + public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { + this.maxMoveRuUnit = maxMoveRuUnit; + this.__explicitlySet__.add("maxMoveRuUnit"); + return this; + } + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @param mode the value to set + * @return this builder + */ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + * + * @param streamIds the value to set + * @return this builder + */ + public Builder streamIds(java.util.List streamIds) { + this.streamIds = streamIds; + this.__explicitlySet__.add("streamIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseAutoResourceManagementDetails build() { + DistributedAutonomousDatabaseAutoResourceManagementDetails model = + new DistributedAutonomousDatabaseAutoResourceManagementDetails( + this.isEnabled, + this.coolOffPeriodInMinutes, + this.maxMoveRuAttempts, + this.maxMoveRuUnit, + this.mode, + this.actionType, + this.notificationTopicIds, + this.streamIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseAutoResourceManagementDetails model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { + this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { + this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { + this.maxMoveRuUnit(model.getMaxMoveRuUnit()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("streamIds")) { + this.streamIds(model.getStreamIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Time period to wait for the database to get stable after autoResourceManagement event. */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private final Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @return the value + */ + public Integer getCoolOffPeriodInMinutes() { + return coolOffPeriodInMinutes; + } + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private final Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @return the value + */ + public Integer getMaxMoveRuAttempts() { + return maxMoveRuAttempts; + } + + /** Time unit applicable to maxMoveRuAttempts. */ + public enum MaxMoveRuUnit implements com.oracle.bmc.http.internal.BmcEnum { + Hour("HOUR"), + Day("DAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaxMoveRuUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaxMoveRuUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private final MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @return the value + */ + public MaxMoveRuUnit getMaxMoveRuUnit() { + return maxMoveRuUnit; + } + + /** Mode of autoResourceManagement execution. */ + public enum Mode implements com.oracle.bmc.http.internal.BmcEnum { + Automatic("AUTOMATIC"), + Recommendation("RECOMMENDATION"), + + /** + * 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(Mode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @return the value + */ + public Mode getMode() { + return mode; + } + + /** The action that will be taken when autoResourceManagement is triggered. */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Move("MOVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private final java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + * + * @return the value + */ + public java.util.List getStreamIds() { + return streamIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseAutoResourceManagementDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); + sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); + sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", streamIds=").append(String.valueOf(this.streamIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseAutoResourceManagementDetails)) { + return false; + } + + DistributedAutonomousDatabaseAutoResourceManagementDetails other = + (DistributedAutonomousDatabaseAutoResourceManagementDetails) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) + && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) + && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.streamIds, other.streamIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.coolOffPeriodInMinutes == null + ? 43 + : this.coolOffPeriodInMinutes.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java new file mode 100644 index 00000000000..1cdb7034e90 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java @@ -0,0 +1,167 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed autonomous database catalog details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseCatalog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseCatalog + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public DistributedAutonomousDatabaseCatalog( + DistributedAutonomousDatabaseCatalogReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private DistributedAutonomousDatabaseCatalogReplica originalReplica; + + public Builder originalReplica( + DistributedAutonomousDatabaseCatalogReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replicas for the catalog. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseCatalog build() { + DistributedAutonomousDatabaseCatalog model = + new DistributedAutonomousDatabaseCatalog( + this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseCatalog model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final DistributedAutonomousDatabaseCatalogReplica originalReplica; + + public DistributedAutonomousDatabaseCatalogReplica getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replicas for the catalog. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseCatalog("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseCatalog)) { + return false; + } + + DistributedAutonomousDatabaseCatalog other = (DistributedAutonomousDatabaseCatalog) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java new file mode 100644 index 00000000000..f2a7f8fe3fd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.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.distributeddatabasev26.model; + +/** + * Details of the catalog database associated with the Globally distributed autonomous database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = DistributedAutonomousDatabaseCatalogDatabase.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.class, + name = "ADBD_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DistributedAutonomousDatabaseCatalogDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) + protected DistributedAutonomousDatabaseCatalogDatabase( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata) { + super(); + this.name = name; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.metadata = metadata; + } + + /** The name of the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The time the catalog was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the catalog was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the catalog was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the catalog was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseCatalogDatabase("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseCatalogDatabase)) { + return false; + } + + DistributedAutonomousDatabaseCatalogDatabase other = + (DistributedAutonomousDatabaseCatalogDatabase) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed autonomous database type. Use ADBD_EXISTING_CLUSTER + * for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), + + /** + * 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(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java new file mode 100644 index 00000000000..03db568690c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java @@ -0,0 +1,168 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a catalog replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseCatalogReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseCatalogReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public DistributedAutonomousDatabaseCatalogReplica( + String name, DistributedAutonomousDatabaseCatalogDatabase database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private DistributedAutonomousDatabaseCatalogDatabase database; + + public Builder database(DistributedAutonomousDatabaseCatalogDatabase database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseCatalogReplica build() { + DistributedAutonomousDatabaseCatalogReplica model = + new DistributedAutonomousDatabaseCatalogReplica(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseCatalogReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final DistributedAutonomousDatabaseCatalogDatabase database; + + public DistributedAutonomousDatabaseCatalogDatabase getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseCatalogReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseCatalogReplica)) { + return false; + } + + DistributedAutonomousDatabaseCatalogReplica other = + (DistributedAutonomousDatabaseCatalogReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java new file mode 100644 index 00000000000..6bc58703875 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java @@ -0,0 +1,888 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed autonomous database catalog on dedicated infrastructure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseCatalogWithDedicatedInfra + extends DistributedAutonomousDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** The compute count for the catalog database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the catalog database. It has to be in multiples of 2. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** The data disk group size to be allocated in GBs for the catalog database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the catalog database. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + * + * @param isAutoScalingEnabled the value to set + * @return this builder + */ + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + * + * @param cloudAutonomousVmClusterId the value to set + * @return this builder + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.__explicitlySet__.add("cloudAutonomousVmClusterId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the catalog. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the catalog. + * + * @param okvKeyStoreId the value to set + * @return this builder + */ + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); + return this; + } + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @param okvEndPointGroupName the value to set + * @return this builder + */ + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); + return this; + } + /** The protection mode for the catalog peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the catalog peer. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @param fastStartFailOverLagLimitInSeconds the value to set + * @return this builder + */ + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); + return this; + } + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance + * of the primary database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance + * of the primary database. + * + * @param standbyMaintenanceBufferInDays the value to set + * @return this builder + */ + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); + return this; + } + /** Status of the distributed autonomous database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed autonomous database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseCatalogWithDedicatedInfra build() { + DistributedAutonomousDatabaseCatalogWithDedicatedInfra model = + new DistributedAutonomousDatabaseCatalogWithDedicatedInfra( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.computeCount, + this.dataStorageSizeInGbs, + this.isAutoScalingEnabled, + this.cloudAutonomousVmClusterId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays, + this.status, + this.supportingResourceId, + this.containerDatabaseId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseCatalogWithDedicatedInfra model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { + this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { + this.okvKeyStoreId(model.getOkvKeyStoreId()); + } + if (model.wasPropertyExplicitlySet("okvEndPointGroupName")) { + this.okvEndPointGroupName(model.getOkvEndPointGroupName()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { + this.fastStartFailOverLagLimitInSeconds( + model.getFastStartFailOverLagLimitInSeconds()); + } + if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { + this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedAutonomousDatabaseCatalogWithDedicatedInfra( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata, + Float computeCount, + Double dataStorageSizeInGbs, + Boolean isAutoScalingEnabled, + String cloudAutonomousVmClusterId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays, + Status status, + String supportingResourceId, + String containerDatabaseId) { + super(name, timeCreated, timeUpdated, metadata); + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + } + + /** The compute count for the catalog database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the catalog database. It has to be in multiples of 2. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the catalog database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the catalog database. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private final String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous VM Cluster. + * + * @return the value + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the catalog. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private final String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the catalog. + * + * @return the value + */ + public String getOkvKeyStoreId() { + return okvKeyStoreId; + } + + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @return the value + */ + public String getOkvEndPointGroupName() { + return okvEndPointGroupName; + } + + /** The protection mode for the catalog peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the catalog peer. + * + * @return the value + */ + public DistributedAutonomousDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private final Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @return the value + */ + public Integer getFastStartFailOverLagLimitInSeconds() { + return fastStartFailOverLagLimitInSeconds; + } + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance of + * the primary database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private final Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. This value represents the number of days before scheduled maintenance of + * the primary database. + * + * @return the value + */ + public Integer getStandbyMaintenanceBufferInDays() { + return standbyMaintenanceBufferInDays; + } + + /** Status of the distributed autonomous database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed autonomous database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed autonomous database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseCatalogWithDedicatedInfra("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); + sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", fastStartFailOverLagLimitInSeconds=") + .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); + sb.append(", standbyMaintenanceBufferInDays=") + .append(String.valueOf(this.standbyMaintenanceBufferInDays)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseCatalogWithDedicatedInfra)) { + return false; + } + + DistributedAutonomousDatabaseCatalogWithDedicatedInfra other = + (DistributedAutonomousDatabaseCatalogWithDedicatedInfra) o; + return java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) + && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals( + this.fastStartFailOverLagLimitInSeconds, + other.fastStartFailOverLagLimitInSeconds) + && java.util.Objects.equals( + this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); + result = + (result * PRIME) + + (this.okvEndPointGroupName == null + ? 43 + : this.okvEndPointGroupName.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.fastStartFailOverLagLimitInSeconds == null + ? 43 + : this.fastStartFailOverLagLimitInSeconds.hashCode()); + result = + (result * PRIME) + + (this.standbyMaintenanceBufferInDays == null + ? 43 + : this.standbyMaintenanceBufferInDays.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java new file mode 100644 index 00000000000..1fb148d9c89 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Collection of Globally distributed autonomous databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DistributedAutonomousDatabaseCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of Globally distributed autonomous database summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Globally distributed autonomous database summaries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseCollection build() { + DistributedAutonomousDatabaseCollection model = + new DistributedAutonomousDatabaseCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Array of Globally distributed autonomous database summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Globally distributed autonomous database summaries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseCollection("); + 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 DistributedAutonomousDatabaseCollection)) { + return false; + } + + DistributedAutonomousDatabaseCollection other = (DistributedAutonomousDatabaseCollection) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java new file mode 100644 index 00000000000..1b6f10821ba --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java @@ -0,0 +1,141 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of Globally distributed autonomous database connection String.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseConnectionString.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseConnectionString + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"allConnectionStrings"}) + public DistributedAutonomousDatabaseConnectionString( + java.util.Map allConnectionStrings) { + super(); + this.allConnectionStrings = allConnectionStrings; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of connection strings. */ + @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") + private java.util.Map allConnectionStrings; + + /** + * Collection of connection strings. + * + * @param allConnectionStrings the value to set + * @return this builder + */ + public Builder allConnectionStrings(java.util.Map allConnectionStrings) { + this.allConnectionStrings = allConnectionStrings; + this.__explicitlySet__.add("allConnectionStrings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseConnectionString build() { + DistributedAutonomousDatabaseConnectionString model = + new DistributedAutonomousDatabaseConnectionString(this.allConnectionStrings); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseConnectionString model) { + if (model.wasPropertyExplicitlySet("allConnectionStrings")) { + this.allConnectionStrings(model.getAllConnectionStrings()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Collection of connection strings. */ + @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") + private final java.util.Map allConnectionStrings; + + /** + * Collection of connection strings. + * + * @return the value + */ + public java.util.Map getAllConnectionStrings() { + return allConnectionStrings; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseConnectionString("); + sb.append("super=").append(super.toString()); + sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseConnectionString)) { + return false; + } + + DistributedAutonomousDatabaseConnectionString other = + (DistributedAutonomousDatabaseConnectionString) o; + return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.allConnectionStrings == null + ? 43 + : this.allConnectionStrings.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java new file mode 100644 index 00000000000..49f0cd6e6f5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java @@ -0,0 +1,468 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of Global Database Services Control(GDS CTL) instances for the Globally distributed + * autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseGdsControlNode.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseGdsControlNode + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "subnetId", + "availabilityDomain", + "timeCreated", + "timeUpdated", + "supportingResourceId", + "privateIp", + "gdsControlNodeImageDetails", + "metadata" + }) + public DistributedAutonomousDatabaseGdsControlNode( + String name, + String subnetId, + String availabilityDomain, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String supportingResourceId, + String privateIp, + DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails, + DistributedAutonomousDbMetadata metadata) { + super(); + this.name = name; + this.subnetId = subnetId; + this.availabilityDomain = availabilityDomain; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.supportingResourceId = supportingResourceId; + this.privateIp = privateIp; + this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the Global Database Services Control instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the Global Database Services Control instance + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The name of the availability domain where the Global Database Services Control instance + * is located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain where the Global Database Services Control instance + * is located in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 + * formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * The identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** IP address of the Global Database Services Control instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private String privateIp; + + /** + * IP address of the Global Database Services Control instance. + * + * @param privateIp the value to set + * @return this builder + */ + public Builder privateIp(String privateIp) { + this.privateIp = privateIp; + this.__explicitlySet__.add("privateIp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") + private DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails; + + public Builder gdsControlNodeImageDetails( + DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails) { + this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; + this.__explicitlySet__.add("gdsControlNodeImageDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseGdsControlNode build() { + DistributedAutonomousDatabaseGdsControlNode model = + new DistributedAutonomousDatabaseGdsControlNode( + this.name, + this.subnetId, + this.availabilityDomain, + this.timeCreated, + this.timeUpdated, + this.supportingResourceId, + this.privateIp, + this.gdsControlNodeImageDetails, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseGdsControlNode model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("privateIp")) { + this.privateIp(model.getPrivateIp()); + } + if (model.wasPropertyExplicitlySet("gdsControlNodeImageDetails")) { + this.gdsControlNodeImageDetails(model.getGdsControlNodeImageDetails()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the Global Database Services Control instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the Global Database Services Control instance + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * The name of the availability domain where the Global Database Services Control instance is + * located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain where the Global Database Services Control instance is + * located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * The identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** IP address of the Global Database Services Control instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private final String privateIp; + + /** + * IP address of the Global Database Services Control instance. + * + * @return the value + */ + public String getPrivateIp() { + return privateIp; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") + private final DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails; + + public DistributedAutonomousDatabaseGdsControlNodeImage getGdsControlNodeImageDetails() { + return gdsControlNodeImageDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseGdsControlNode("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", gdsControlNodeImageDetails=") + .append(String.valueOf(this.gdsControlNodeImageDetails)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseGdsControlNode)) { + return false; + } + + DistributedAutonomousDatabaseGdsControlNode other = + (DistributedAutonomousDatabaseGdsControlNode) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals( + this.gdsControlNodeImageDetails, other.gdsControlNodeImageDetails) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.gdsControlNodeImageDetails == null + ? 43 + : this.gdsControlNodeImageDetails.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java new file mode 100644 index 00000000000..b0fa308bece --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * The Global Database Services Control(GDS CTL) image details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseGdsControlNodeImage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseGdsControlNodeImage + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedAutonomousDatabaseGdsControlNodeImage(String id, String version) { + super(); + this.id = id; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version associated with the image identified by id. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseGdsControlNodeImage build() { + DistributedAutonomousDatabaseGdsControlNodeImage model = + new DistributedAutonomousDatabaseGdsControlNodeImage(this.id, this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseGdsControlNodeImage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version associated with the image identified by id. + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseGdsControlNodeImage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseGdsControlNodeImage)) { + return false; + } + + DistributedAutonomousDatabaseGdsControlNodeImage other = + (DistributedAutonomousDatabaseGdsControlNodeImage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java new file mode 100644 index 00000000000..ff11fbd2196 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java @@ -0,0 +1,552 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of global service manager(GSM also known as shard director) instances for the Globally + * distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseGsm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseGsm + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "computeCount", + "dataStorageSizeInGbs", + "timeCreated", + "timeUpdated", + "status", + "timeSslCertificateExpires", + "supportingResourceId", + "gsmImageDetails", + "metadata" + }) + public DistributedAutonomousDatabaseGsm( + String name, + Float computeCount, + Double dataStorageSizeInGbs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Status status, + java.util.Date timeSslCertificateExpires, + String supportingResourceId, + DistributedAutonomousDatabaseGsmImage gsmImageDetails, + DistributedAutonomousDbMetadata metadata) { + super(); + this.name = name; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.status = status; + this.timeSslCertificateExpires = timeSslCertificateExpires; + this.supportingResourceId = supportingResourceId; + this.gsmImageDetails = gsmImageDetails; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the Global service manager instance. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The compute count for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the Global service manager instance. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted + * datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Status of the gsm for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the gsm for the Globally distributed autonomous database. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires") + private java.util.Date timeSslCertificateExpires; + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string. + * + * @param timeSslCertificateExpires the value to set + * @return this builder + */ + public Builder timeSslCertificateExpires(java.util.Date timeSslCertificateExpires) { + this.timeSslCertificateExpires = timeSslCertificateExpires; + this.__explicitlySet__.add("timeSslCertificateExpires"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gsmImageDetails") + private DistributedAutonomousDatabaseGsmImage gsmImageDetails; + + public Builder gsmImageDetails(DistributedAutonomousDatabaseGsmImage gsmImageDetails) { + this.gsmImageDetails = gsmImageDetails; + this.__explicitlySet__.add("gsmImageDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseGsm build() { + DistributedAutonomousDatabaseGsm model = + new DistributedAutonomousDatabaseGsm( + this.name, + this.computeCount, + this.dataStorageSizeInGbs, + this.timeCreated, + this.timeUpdated, + this.status, + this.timeSslCertificateExpires, + this.supportingResourceId, + this.gsmImageDetails, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseGsm model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeSslCertificateExpires")) { + this.timeSslCertificateExpires(model.getTimeSslCertificateExpires()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("gsmImageDetails")) { + this.gsmImageDetails(model.getGsmImageDetails()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the Global service manager instance. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The compute count for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the Global service manager instance. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Status of the gsm for the Globally distributed autonomous database. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the gsm for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the gsm for the Globally distributed autonomous database. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires") + private final java.util.Date timeSslCertificateExpires; + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeSslCertificateExpires() { + return timeSslCertificateExpires; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gsmImageDetails") + private final DistributedAutonomousDatabaseGsmImage gsmImageDetails; + + public DistributedAutonomousDatabaseGsmImage getGsmImageDetails() { + return gsmImageDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseGsm("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeSslCertificateExpires=") + .append(String.valueOf(this.timeSslCertificateExpires)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", gsmImageDetails=").append(String.valueOf(this.gsmImageDetails)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseGsm)) { + return false; + } + + DistributedAutonomousDatabaseGsm other = (DistributedAutonomousDatabaseGsm) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.timeSslCertificateExpires, other.timeSslCertificateExpires) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.gsmImageDetails, other.gsmImageDetails) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.timeSslCertificateExpires == null + ? 43 + : this.timeSslCertificateExpires.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.gsmImageDetails == null ? 43 : this.gsmImageDetails.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java new file mode 100644 index 00000000000..c2288fea98a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java @@ -0,0 +1,178 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The Global service manager image details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseGsmImage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseGsmImage + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedAutonomousDatabaseGsmImage(String id, String version) { + super(); + this.id = id; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version associated with the image identified by id. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseGsmImage build() { + DistributedAutonomousDatabaseGsmImage model = + new DistributedAutonomousDatabaseGsmImage(this.id, this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseGsmImage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version associated with the image identified by id. + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseGsmImage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseGsmImage)) { + return false; + } + + DistributedAutonomousDatabaseGsmImage other = (DistributedAutonomousDatabaseGsmImage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java new file mode 100644 index 00000000000..5a7055d918e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.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.distributeddatabasev26.model; + +/** + * Raft metrics for shards and catalog for the Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseRaftMetric.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseRaftMetric + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"raftMetrics", "configTasks"}) + public DistributedAutonomousDatabaseRaftMetric( + java.util.Map raftMetrics, java.util.Map configTasks) { + super(); + this.raftMetrics = raftMetrics; + this.configTasks = configTasks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Raft metrics for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") + private java.util.Map raftMetrics; + + /** + * Raft metrics for the Globally distributed autonomous database. + * + * @param raftMetrics the value to set + * @return this builder + */ + public Builder raftMetrics(java.util.Map raftMetrics) { + this.raftMetrics = raftMetrics; + this.__explicitlySet__.add("raftMetrics"); + return this; + } + /** Details of in-progress configuration tasks. */ + @com.fasterxml.jackson.annotation.JsonProperty("configTasks") + private java.util.Map configTasks; + + /** + * Details of in-progress configuration tasks. + * + * @param configTasks the value to set + * @return this builder + */ + public Builder configTasks(java.util.Map configTasks) { + this.configTasks = configTasks; + this.__explicitlySet__.add("configTasks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseRaftMetric build() { + DistributedAutonomousDatabaseRaftMetric model = + new DistributedAutonomousDatabaseRaftMetric(this.raftMetrics, this.configTasks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseRaftMetric model) { + if (model.wasPropertyExplicitlySet("raftMetrics")) { + this.raftMetrics(model.getRaftMetrics()); + } + if (model.wasPropertyExplicitlySet("configTasks")) { + this.configTasks(model.getConfigTasks()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Raft metrics for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") + private final java.util.Map raftMetrics; + + /** + * Raft metrics for the Globally distributed autonomous database. + * + * @return the value + */ + public java.util.Map getRaftMetrics() { + return raftMetrics; + } + + /** Details of in-progress configuration tasks. */ + @com.fasterxml.jackson.annotation.JsonProperty("configTasks") + private final java.util.Map configTasks; + + /** + * Details of in-progress configuration tasks. + * + * @return the value + */ + public java.util.Map getConfigTasks() { + return configTasks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseRaftMetric("); + sb.append("super=").append(super.toString()); + sb.append("raftMetrics=").append(String.valueOf(this.raftMetrics)); + sb.append(", configTasks=").append(String.valueOf(this.configTasks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseRaftMetric)) { + return false; + } + + DistributedAutonomousDatabaseRaftMetric other = (DistributedAutonomousDatabaseRaftMetric) o; + return java.util.Objects.equals(this.raftMetrics, other.raftMetrics) + && java.util.Objects.equals(this.configTasks, other.configTasks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.raftMetrics == null ? 43 : this.raftMetrics.hashCode()); + result = (result * PRIME) + (this.configTasks == null ? 43 : this.configTasks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java new file mode 100644 index 00000000000..85612970435 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java @@ -0,0 +1,137 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Move RU invocation history for the Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseRuChangeLog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseRuChangeLog + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ruChangeLog"}) + public DistributedAutonomousDatabaseRuChangeLog( + java.util.List ruChangeLog) { + super(); + this.ruChangeLog = ruChangeLog; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Ordered list of move RU invocations (latest first). */ + @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") + private java.util.List ruChangeLog; + + /** + * Ordered list of move RU invocations (latest first). + * + * @param ruChangeLog the value to set + * @return this builder + */ + public Builder ruChangeLog( + java.util.List ruChangeLog) { + this.ruChangeLog = ruChangeLog; + this.__explicitlySet__.add("ruChangeLog"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseRuChangeLog build() { + DistributedAutonomousDatabaseRuChangeLog model = + new DistributedAutonomousDatabaseRuChangeLog(this.ruChangeLog); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseRuChangeLog model) { + if (model.wasPropertyExplicitlySet("ruChangeLog")) { + this.ruChangeLog(model.getRuChangeLog()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Ordered list of move RU invocations (latest first). */ + @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") + private final java.util.List ruChangeLog; + + /** + * Ordered list of move RU invocations (latest first). + * + * @return the value + */ + public java.util.List getRuChangeLog() { + return ruChangeLog; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseRuChangeLog("); + sb.append("super=").append(super.toString()); + sb.append("ruChangeLog=").append(String.valueOf(this.ruChangeLog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseRuChangeLog)) { + return false; + } + + DistributedAutonomousDatabaseRuChangeLog other = + (DistributedAutonomousDatabaseRuChangeLog) o; + return java.util.Objects.equals(this.ruChangeLog, other.ruChangeLog) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ruChangeLog == null ? 43 : this.ruChangeLog.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java new file mode 100644 index 00000000000..a9fe1e8782c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java @@ -0,0 +1,419 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * One move RU invocation record for the Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseRuChangeLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseRuChangeLogSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceShardName", + "targetShardName", + "ruId", + "status", + "triggeredBy", + "timeCreated", + "timeUpdated" + }) + public DistributedAutonomousDatabaseRuChangeLogSummary( + String sourceShardName, + String targetShardName, + String ruId, + Status status, + String triggeredBy, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.sourceShardName = sourceShardName; + this.targetShardName = targetShardName; + this.ruId = ruId; + this.status = status; + this.triggeredBy = triggeredBy; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Source shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private String sourceShardName; + + /** + * Source shard for move RU invocation. + * + * @param sourceShardName the value to set + * @return this builder + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + this.__explicitlySet__.add("sourceShardName"); + return this; + } + /** Target shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") + private String targetShardName; + + /** + * Target shard for move RU invocation. + * + * @param targetShardName the value to set + * @return this builder + */ + public Builder targetShardName(String targetShardName) { + this.targetShardName = targetShardName; + this.__explicitlySet__.add("targetShardName"); + return this; + } + /** Replication unit identifier associated with the invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruId") + private String ruId; + + /** + * Replication unit identifier associated with the invocation. + * + * @param ruId the value to set + * @return this builder + */ + public Builder ruId(String ruId) { + this.ruId = ruId; + this.__explicitlySet__.add("ruId"); + return this; + } + /** Current or terminal status of the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Current or terminal status of the move RU invocation. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Actor who triggered the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private String triggeredBy; + + /** + * Actor who triggered the move RU invocation. + * + * @param triggeredBy the value to set + * @return this builder + */ + public Builder triggeredBy(String triggeredBy) { + this.triggeredBy = triggeredBy; + this.__explicitlySet__.add("triggeredBy"); + return this; + } + /** Entry creation timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Entry creation timestamp in UTC. + * + * @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; + } + /** Entry update timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Entry update timestamp in UTC. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseRuChangeLogSummary build() { + DistributedAutonomousDatabaseRuChangeLogSummary model = + new DistributedAutonomousDatabaseRuChangeLogSummary( + this.sourceShardName, + this.targetShardName, + this.ruId, + this.status, + this.triggeredBy, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseRuChangeLogSummary model) { + if (model.wasPropertyExplicitlySet("sourceShardName")) { + this.sourceShardName(model.getSourceShardName()); + } + if (model.wasPropertyExplicitlySet("targetShardName")) { + this.targetShardName(model.getTargetShardName()); + } + if (model.wasPropertyExplicitlySet("ruId")) { + this.ruId(model.getRuId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("triggeredBy")) { + this.triggeredBy(model.getTriggeredBy()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Source shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private final String sourceShardName; + + /** + * Source shard for move RU invocation. + * + * @return the value + */ + public String getSourceShardName() { + return sourceShardName; + } + + /** Target shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") + private final String targetShardName; + + /** + * Target shard for move RU invocation. + * + * @return the value + */ + public String getTargetShardName() { + return targetShardName; + } + + /** Replication unit identifier associated with the invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruId") + private final String ruId; + + /** + * Replication unit identifier associated with the invocation. + * + * @return the value + */ + public String getRuId() { + return ruId; + } + + /** Current or terminal status of the move RU invocation. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Queued("QUEUED"), + InProgress("IN_PROGRESS"), + Completed("COMPLETED"), + + /** + * 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Current or terminal status of the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Current or terminal status of the move RU invocation. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** Actor who triggered the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private final String triggeredBy; + + /** + * Actor who triggered the move RU invocation. + * + * @return the value + */ + public String getTriggeredBy() { + return triggeredBy; + } + + /** Entry creation timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Entry creation timestamp in UTC. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Entry update timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Entry update timestamp in UTC. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseRuChangeLogSummary("); + sb.append("super=").append(super.toString()); + sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); + sb.append(", targetShardName=").append(String.valueOf(this.targetShardName)); + sb.append(", ruId=").append(String.valueOf(this.ruId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseRuChangeLogSummary)) { + return false; + } + + DistributedAutonomousDatabaseRuChangeLogSummary other = + (DistributedAutonomousDatabaseRuChangeLogSummary) o; + return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.targetShardName, other.targetShardName) + && java.util.Objects.equals(this.ruId, other.ruId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = + (result * PRIME) + + (this.targetShardName == null ? 43 : this.targetShardName.hashCode()); + result = (result * PRIME) + (this.ruId == null ? 43 : this.ruId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java new file mode 100644 index 00000000000..2579c14e0c3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.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.distributeddatabasev26.model; + +/** + * Globally distributed autonomous database shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = DistributedAutonomousDatabaseShardDatabase.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedAutonomousDatabaseShardWithDedicatedInfra.class, + name = "ADBD_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DistributedAutonomousDatabaseShardDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) + protected DistributedAutonomousDatabaseShardDatabase( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata) { + super(); + this.name = name; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.metadata = metadata; + } + + /** Name of the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the shard. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The time the shard was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the shard was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the shard was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the shard was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseShardDatabase("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseShardDatabase)) { + return false; + } + + DistributedAutonomousDatabaseShardDatabase other = + (DistributedAutonomousDatabaseShardDatabase) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed autonomous database type. Use ADBD_EXISTING_CLUSTER + * for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), + + /** + * 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(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java new file mode 100644 index 00000000000..3083c0f5a72 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java @@ -0,0 +1,884 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed autonomous database shard on dedicated infrastructure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseShardWithDedicatedInfra.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseShardWithDedicatedInfra + extends DistributedAutonomousDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** The compute count for the shard database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the shard database. It has to be in multiples of 2. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** The data disk group size to be allocated in GBs for the shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the shard database. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core + * count. The default value is {@code FALSE}. + * + * @param isAutoScalingEnabled the value to set + * @return this builder + */ + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + * + * @param cloudAutonomousVmClusterId the value to set + * @return this builder + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.__explicitlySet__.add("cloudAutonomousVmClusterId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the shard. + * + * @param okvKeyStoreId the value to set + * @return this builder + */ + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); + return this; + } + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @param okvEndPointGroupName the value to set + * @return this builder + */ + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); + return this; + } + /** The protection mode for the shard peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the shard peer. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @param fastStartFailOverLagLimitInSeconds the value to set + * @return this builder + */ + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); + return this; + } + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + * + * @param standbyMaintenanceBufferInDays the value to set + * @return this builder + */ + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); + return this; + } + /** Status of the distributed autonomous database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed autonomous database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseShardWithDedicatedInfra build() { + DistributedAutonomousDatabaseShardWithDedicatedInfra model = + new DistributedAutonomousDatabaseShardWithDedicatedInfra( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.computeCount, + this.dataStorageSizeInGbs, + this.isAutoScalingEnabled, + this.cloudAutonomousVmClusterId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays, + this.status, + this.supportingResourceId, + this.containerDatabaseId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseShardWithDedicatedInfra model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { + this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { + this.okvKeyStoreId(model.getOkvKeyStoreId()); + } + if (model.wasPropertyExplicitlySet("okvEndPointGroupName")) { + this.okvEndPointGroupName(model.getOkvEndPointGroupName()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { + this.fastStartFailOverLagLimitInSeconds( + model.getFastStartFailOverLagLimitInSeconds()); + } + if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { + this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedAutonomousDatabaseShardWithDedicatedInfra( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata, + Float computeCount, + Double dataStorageSizeInGbs, + Boolean isAutoScalingEnabled, + String cloudAutonomousVmClusterId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays, + Status status, + String supportingResourceId, + String containerDatabaseId) { + super(name, timeCreated, timeUpdated, metadata); + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.okvKeyStoreId = okvKeyStoreId; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + } + + /** The compute count for the shard database. It has to be in multiples of 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the shard database. It has to be in multiples of 2. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the shard database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the shard database. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private final String cloudAutonomousVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * cloud Autonomous Exadata VM Cluster. + * + * @return the value + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private final String okvKeyStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * store used to create the shard. + * + * @return the value + */ + public String getOkvKeyStoreId() { + return okvKeyStoreId; + } + + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; + + /** + * The OKV endpoint name. + * + * @return the value + */ + public String getOkvEndPointGroupName() { + return okvEndPointGroupName; + } + + /** The protection mode for the shard peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedAutonomousDbProtectionMode protectionMode; + + /** + * The protection mode for the shard peer. + * + * @return the value + */ + public DistributedAutonomousDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private final Integer fastStartFailOverLagLimitInSeconds; + + /** + * The lag time preference based on data loss tolerance in seconds. + * + * @return the value + */ + public Integer getFastStartFailOverLagLimitInSeconds() { + return fastStartFailOverLagLimitInSeconds; + } + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private final Integer standbyMaintenanceBufferInDays; + + /** + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. + * + * @return the value + */ + public Integer getStandbyMaintenanceBufferInDays() { + return standbyMaintenanceBufferInDays; + } + + /** Status of the distributed autonomous database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed autonomous database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed autonomous database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseShardWithDedicatedInfra("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); + sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", fastStartFailOverLagLimitInSeconds=") + .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); + sb.append(", standbyMaintenanceBufferInDays=") + .append(String.valueOf(this.standbyMaintenanceBufferInDays)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseShardWithDedicatedInfra)) { + return false; + } + + DistributedAutonomousDatabaseShardWithDedicatedInfra other = + (DistributedAutonomousDatabaseShardWithDedicatedInfra) o; + return java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) + && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals( + this.fastStartFailOverLagLimitInSeconds, + other.fastStartFailOverLagLimitInSeconds) + && java.util.Objects.equals( + this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); + result = + (result * PRIME) + + (this.okvEndPointGroupName == null + ? 43 + : this.okvEndPointGroupName.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.fastStartFailOverLagLimitInSeconds == null + ? 43 + : this.fastStartFailOverLagLimitInSeconds.hashCode()); + result = + (result * PRIME) + + (this.standbyMaintenanceBufferInDays == null + ? 43 + : this.standbyMaintenanceBufferInDays.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java new file mode 100644 index 00000000000..ae7759936da --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java @@ -0,0 +1,1451 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDatabaseSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "databaseVersion", + "lifecycleState", + "lifecycleDetails", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "dbWorkloadType", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "systemChunkCount", + "autoResourceManagementConfig", + "systemRaftReplicationUnitCount", + "metadata", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedAutonomousDatabaseSummary( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String databaseVersion, + DistributedAutonomousDatabase.LifecycleState lifecycleState, + String lifecycleDetails, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer systemChunkCount, + AutoResourceManagementConfigurationDetails autoResourceManagementConfig, + Integer systemRaftReplicationUnitCount, + DistributedAutonomousDbMetadata metadata, + ShardingMethod shardingMethod, + ReplicationMethod replicationMethod, + DbDeploymentType dbDeploymentType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.databaseVersion = databaseVersion; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.systemChunkCount = systemChunkCount; + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.metadata = metadata; + this.shardingMethod = shardingMethod; + this.replicationMethod = replicationMethod; + this.dbDeploymentType = dbDeploymentType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 + * formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed + * autonomous database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Lifecycle state of sharded database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DistributedAutonomousDatabase.LifecycleState lifecycleState; + + /** + * Lifecycle state of sharded database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(DistributedAutonomousDatabase.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The lifecycleDetails for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed autonomous database. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of + * letter and number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** The workload type for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType; + + /** + * The workload type for the database. + * + * @param dbWorkloadType the value to set + * @return this builder + */ + public Builder dbWorkloadType(DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** The listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The TLS listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed autonomous database. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** Ons local port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * Ons local port number for the Globally distributed autonomous database. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** Ons remote port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * Ons remote port number for the Globally distributed autonomous database. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public Builder autoResourceManagementConfig( + AutoResourceManagementConfigurationDetails autoResourceManagementConfig) { + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.__explicitlySet__.add("autoResourceManagementConfig"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedAutonomousDbMetadata metadata; + + public Builder metadata(DistributedAutonomousDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** Sharding methods for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed autonomous database. + * + * @param shardingMethod the value to set + * @return this builder + */ + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); + return this; + } + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft + * based replication. With RAFT replication, shards cannot have peers details set on them. + * In case shards need to have peers, please do not set RAFT replicationMethod. For all non + * RAFT replication cases (with or without peers), please set replicationMethod as DG or do + * not set any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft + * based replication. With RAFT replication, shards cannot have peers details set on them. + * In case shards need to have peers, please do not set RAFT replicationMethod. For all non + * RAFT replication cases (with or without peers), please set replicationMethod as DG or do + * not set any value for replicationMethod. + * + * @param replicationMethod the value to set + * @return this builder + */ + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** The distributed autonomous database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private DbDeploymentType dbDeploymentType; + + /** + * The distributed autonomous database deployment type. + * + * @param dbDeploymentType the value to set + * @return this builder + */ + public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + this.__explicitlySet__.add("dbDeploymentType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDatabaseSummary build() { + DistributedAutonomousDatabaseSummary model = + new DistributedAutonomousDatabaseSummary( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.databaseVersion, + this.lifecycleState, + this.lifecycleDetails, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.dbWorkloadType, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.systemChunkCount, + this.autoResourceManagementConfig, + this.systemRaftReplicationUnitCount, + this.metadata, + this.shardingMethod, + this.replicationMethod, + this.dbDeploymentType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDatabaseSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("shardingMethod")) { + this.shardingMethod(model.getShardingMethod()); + } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("dbDeploymentType")) { + this.dbDeploymentType(model.getDbDeploymentType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed autonomous database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed autonomous database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Globally distributed autonomous database was created. An RFC3339 formatted + * datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted + * datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed autonomous + * database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Lifecycle state of sharded database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DistributedAutonomousDatabase.LifecycleState lifecycleState; + + /** + * Lifecycle state of sharded database. + * + * @return the value + */ + public DistributedAutonomousDatabase.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The lifecycleDetails for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed autonomous database. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed autonomous databases. Only alpha-numeric + * values are allowed. First character has to be a letter followed by any combination of letter + * and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** The workload type for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private final DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType; + + /** + * The workload type for the database. + * + * @return the value + */ + public DistributedAutonomousDatabase.DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** The listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener port number for the Globally distributed autonomous database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The TLS listener port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed autonomous database. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** Ons local port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * Ons local port number for the Globally distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** Ons remote port number for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * Ons remote port number for the Globally distributed autonomous database. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { + return autoResourceManagementConfig; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedAutonomousDbMetadata metadata; + + public DistributedAutonomousDbMetadata getMetadata() { + return metadata; + } + + /** Sharding methods for the Globally distributed autonomous database. */ + public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { + User("USER"), + System("SYSTEM"), + Composite("COMPOSITE"), + + /** + * 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(ShardingMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShardingMethod v : ShardingMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShardingMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShardingMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShardingMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Sharding methods for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private final ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed autonomous database. + * + * @return the value + */ + public ShardingMethod getShardingMethod() { + return shardingMethod; + } + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { + Raft("RAFT"), + Dg("DG"), + + /** + * 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(ReplicationMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationMethod v : ReplicationMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed Autonomous database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + * + * @return the value + */ + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** The distributed autonomous database deployment type. */ + public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { + AdbD("ADB_D"), + + /** + * 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(DbDeploymentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbDeploymentType v : DbDeploymentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbDeploymentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbDeploymentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbDeploymentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The distributed autonomous database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private final DbDeploymentType dbDeploymentType; + + /** + * The distributed autonomous database deployment type. + * + * @return the value + */ + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDatabaseSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", dbWorkloadType=").append(String.valueOf(this.dbWorkloadType)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", autoResourceManagementConfig=") + .append(String.valueOf(this.autoResourceManagementConfig)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDatabaseSummary)) { + return false; + } + + DistributedAutonomousDatabaseSummary other = (DistributedAutonomousDatabaseSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.dbWorkloadType, other.dbWorkloadType) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.autoResourceManagementConfig, other.autoResourceManagementConfig) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) + && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = + (result * PRIME) + + (this.dbWorkloadType == null ? 43 : this.dbWorkloadType.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java new file mode 100644 index 00000000000..93a86f37bcb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Backup options for the Distributed Autonomous Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDbBackupConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDbBackupConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"backupDestinationDetails", "recoveryWindowInDays"}) + public DistributedAutonomousDbBackupConfig( + java.util.List backupDestinationDetails, + Integer recoveryWindowInDays) { + super(); + this.backupDestinationDetails = backupDestinationDetails; + this.recoveryWindowInDays = recoveryWindowInDays; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Backup destination details. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private java.util.List backupDestinationDetails; + + /** + * Backup destination details. + * + * @param backupDestinationDetails the value to set + * @return this builder + */ + public Builder backupDestinationDetails( + java.util.List backupDestinationDetails) { + this.backupDestinationDetails = backupDestinationDetails; + this.__explicitlySet__.add("backupDestinationDetails"); + return this; + } + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups. When the value is updated, it + * is applied to all existing automatic backups. If the number of specified days is 0 then + * there will be no backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowInDays") + private Integer recoveryWindowInDays; + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups. When the value is updated, it + * is applied to all existing automatic backups. If the number of specified days is 0 then + * there will be no backups. + * + * @param recoveryWindowInDays the value to set + * @return this builder + */ + public Builder recoveryWindowInDays(Integer recoveryWindowInDays) { + this.recoveryWindowInDays = recoveryWindowInDays; + this.__explicitlySet__.add("recoveryWindowInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDbBackupConfig build() { + DistributedAutonomousDbBackupConfig model = + new DistributedAutonomousDbBackupConfig( + this.backupDestinationDetails, this.recoveryWindowInDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDbBackupConfig model) { + if (model.wasPropertyExplicitlySet("backupDestinationDetails")) { + this.backupDestinationDetails(model.getBackupDestinationDetails()); + } + if (model.wasPropertyExplicitlySet("recoveryWindowInDays")) { + this.recoveryWindowInDays(model.getRecoveryWindowInDays()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Backup destination details. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private final java.util.List backupDestinationDetails; + + /** + * Backup destination details. + * + * @return the value + */ + public java.util.List getBackupDestinationDetails() { + return backupDestinationDetails; + } + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups. When the value is updated, it is + * applied to all existing automatic backups. If the number of specified days is 0 then there + * will be no backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowInDays") + private final Integer recoveryWindowInDays; + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups. When the value is updated, it is + * applied to all existing automatic backups. If the number of specified days is 0 then there + * will be no backups. + * + * @return the value + */ + public Integer getRecoveryWindowInDays() { + return recoveryWindowInDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDbBackupConfig("); + sb.append("super=").append(super.toString()); + sb.append("backupDestinationDetails=") + .append(String.valueOf(this.backupDestinationDetails)); + sb.append(", recoveryWindowInDays=").append(String.valueOf(this.recoveryWindowInDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDbBackupConfig)) { + return false; + } + + DistributedAutonomousDbBackupConfig other = (DistributedAutonomousDbBackupConfig) o; + return java.util.Objects.equals( + this.backupDestinationDetails, other.backupDestinationDetails) + && java.util.Objects.equals(this.recoveryWindowInDays, other.recoveryWindowInDays) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.backupDestinationDetails == null + ? 43 + : this.backupDestinationDetails.hashCode()); + result = + (result * PRIME) + + (this.recoveryWindowInDays == null + ? 43 + : this.recoveryWindowInDays.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java new file mode 100644 index 00000000000..84ee0b71682 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java @@ -0,0 +1,406 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Backup destination details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDbBackupDestination.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDbBackupDestination + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "id", + "internetProxy", + "dbrsPolicyId", + "isRemote", + "remoteRegion" + }) + public DistributedAutonomousDbBackupDestination( + Type type, + String id, + String internetProxy, + String dbrsPolicyId, + Boolean isRemote, + String remoteRegion) { + super(); + this.type = type; + this.id = id; + this.internetProxy = internetProxy; + this.dbrsPolicyId = dbrsPolicyId; + this.isRemote = isRemote; + this.remoteRegion = remoteRegion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the database backup destination. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the database backup destination. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Proxy URL to connect to object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") + private String internetProxy; + + /** + * Proxy URL to connect to object store. + * + * @param internetProxy the value to set + * @return this builder + */ + public Builder internetProxy(String internetProxy) { + this.internetProxy = internetProxy; + this.__explicitlySet__.add("internetProxy"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DBRS policy used for backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") + private String dbrsPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DBRS policy used for backup. + * + * @param dbrsPolicyId the value to set + * @return this builder + */ + public Builder dbrsPolicyId(String dbrsPolicyId) { + this.dbrsPolicyId = dbrsPolicyId; + this.__explicitlySet__.add("dbrsPolicyId"); + return this; + } + /** Indicates whether the backup destination is cross-region or local region. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemote") + private Boolean isRemote; + + /** + * Indicates whether the backup destination is cross-region or local region. + * + * @param isRemote the value to set + * @return this builder + */ + public Builder isRemote(Boolean isRemote) { + this.isRemote = isRemote; + this.__explicitlySet__.add("isRemote"); + return this; + } + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @param remoteRegion the value to set + * @return this builder + */ + public Builder remoteRegion(String remoteRegion) { + this.remoteRegion = remoteRegion; + this.__explicitlySet__.add("remoteRegion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDbBackupDestination build() { + DistributedAutonomousDbBackupDestination model = + new DistributedAutonomousDbBackupDestination( + this.type, + this.id, + this.internetProxy, + this.dbrsPolicyId, + this.isRemote, + this.remoteRegion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDbBackupDestination model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("internetProxy")) { + this.internetProxy(model.getInternetProxy()); + } + if (model.wasPropertyExplicitlySet("dbrsPolicyId")) { + this.dbrsPolicyId(model.getDbrsPolicyId()); + } + if (model.wasPropertyExplicitlySet("isRemote")) { + this.isRemote(model.getIsRemote()); + } + if (model.wasPropertyExplicitlySet("remoteRegion")) { + this.remoteRegion(model.getRemoteRegion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the database backup destination. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Nfs("NFS"), + ObjectStore("OBJECT_STORE"), + Local("LOCAL"), + Dbrs("DBRS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Type of the database backup destination. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the database backup destination. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Proxy URL to connect to object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") + private final String internetProxy; + + /** + * Proxy URL to connect to object store. + * + * @return the value + */ + public String getInternetProxy() { + return internetProxy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS + * policy used for backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") + private final String dbrsPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS + * policy used for backup. + * + * @return the value + */ + public String getDbrsPolicyId() { + return dbrsPolicyId; + } + + /** Indicates whether the backup destination is cross-region or local region. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemote") + private final Boolean isRemote; + + /** + * Indicates whether the backup destination is cross-region or local region. + * + * @return the value + */ + public Boolean getIsRemote() { + return isRemote; + } + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private final String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getRemoteRegion() { + return remoteRegion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDbBackupDestination("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); + sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); + sb.append(", isRemote=").append(String.valueOf(this.isRemote)); + sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDbBackupDestination)) { + return false; + } + + DistributedAutonomousDbBackupDestination other = + (DistributedAutonomousDbBackupDestination) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.internetProxy, other.internetProxy) + && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) + && java.util.Objects.equals(this.isRemote, other.isRemote) + && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); + result = (result * PRIME) + (this.dbrsPolicyId == null ? 43 : this.dbrsPolicyId.hashCode()); + result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); + result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java new file mode 100644 index 00000000000..3abd79fe3c2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.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.distributeddatabasev26.model; + +/** + * Additional metadata related to Globally distributed autonomous database resources.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDbMetadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedAutonomousDbMetadata + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"map"}) + public DistributedAutonomousDbMetadata(java.util.Map map) { + super(); + this.map = map; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The map containing key-value pair of additional metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("map") + private java.util.Map map; + + /** + * The map containing key-value pair of additional metadata. + * + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + this.__explicitlySet__.add("map"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedAutonomousDbMetadata build() { + DistributedAutonomousDbMetadata model = new DistributedAutonomousDbMetadata(this.map); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedAutonomousDbMetadata model) { + if (model.wasPropertyExplicitlySet("map")) { + this.map(model.getMap()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The map containing key-value pair of additional metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("map") + private final java.util.Map map; + + /** + * The map containing key-value pair of additional metadata. + * + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedAutonomousDbMetadata("); + sb.append("super=").append(super.toString()); + sb.append("map=").append(String.valueOf(this.map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedAutonomousDbMetadata)) { + return false; + } + + DistributedAutonomousDbMetadata other = (DistributedAutonomousDbMetadata) o; + return java.util.Objects.equals(this.map, other.map) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.map == null ? 43 : this.map.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java new file mode 100644 index 00000000000..d1a9671aa89 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java @@ -0,0 +1,59 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The protection mode of this Autonomous Data Guard association. For more information, see [Oracle + * Data Guard Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum DistributedAutonomousDbProtectionMode implements com.oracle.bmc.http.internal.BmcEnum { + MaximumAvailability("MAXIMUM_AVAILABILITY"), + MaximumPerformance("MAXIMUM_PERFORMANCE"), + + /** + * 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(DistributedAutonomousDbProtectionMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributedAutonomousDbProtectionMode v : + DistributedAutonomousDbProtectionMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributedAutonomousDbProtectionMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributedAutonomousDbProtectionMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributedAutonomousDbProtectionMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java new file mode 100644 index 00000000000..7ab1f3a6db0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java @@ -0,0 +1,2004 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "databaseVersion", + "lifecycleState", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", + "lifecycleDetails", + "connectionStrings", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "latestGsmImageDetails", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "scanListenerPort", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", + "catalogDetails", + "gsmDetails", + "gdsControlNodeDetails", + "dbBackupConfig", + "autoResourceManagementConfig", + "gsmSshPublicKey", + "vcnNsgIds", + "metadata", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedDatabase( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String databaseVersion, + LifecycleState lifecycleState, + ShardingMethod shardingMethod, + ReplicationMethod replicationMethod, + DbDeploymentType dbDeploymentType, + String lifecycleDetails, + DistributedDbConnectionString connectionStrings, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + DistributedDbGsmImage latestGsmImageDetails, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer scanListenerPort, + Integer systemChunkCount, + Integer systemRaftReplicationUnitCount, + java.util.List compositeRaftShardSpaces, + java.util.List compositeDataGuardShardSpaces, + java.util.List systemRaftClusters, + SystemDataGuardDatabase systemDataGuardDatabases, + java.util.List userShardSpaces, + java.util.List catalogDetails, + java.util.List gsmDetails, + java.util.List gdsControlNodeDetails, + DistributedDbBackupConfig dbBackupConfig, + AutoResourceManagementConfigurationDetails autoResourceManagementConfig, + String gsmSshPublicKey, + java.util.List vcnNsgIds, + DistributedDbMetadata metadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.databaseVersion = databaseVersion; + this.lifecycleState = lifecycleState; + this.shardingMethod = shardingMethod; + this.replicationMethod = replicationMethod; + this.dbDeploymentType = dbDeploymentType; + this.lifecycleDetails = lifecycleDetails; + this.connectionStrings = connectionStrings; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.latestGsmImageDetails = latestGsmImageDetails; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.scanListenerPort = scanListenerPort; + this.systemChunkCount = systemChunkCount; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.systemRaftClusters = systemRaftClusters; + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.userShardSpaces = userShardSpaces; + this.catalogDetails = catalogDetails; + this.gsmDetails = gsmDetails; + this.gdsControlNodeDetails = gdsControlNodeDetails; + this.dbBackupConfig = dbBackupConfig; + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.gsmSshPublicKey = gsmSshPublicKey; + this.vcnNsgIds = vcnNsgIds; + this.metadata = metadata; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime + * string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted + * datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Lifecycle states for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle states for the Globally distributed database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Sharding methods for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed database. + * + * @param shardingMethod the value to set + * @return this builder + */ + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); + return this; + } + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not + * set any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not + * set any value for replicationMethod. + * + * @param replicationMethod the value to set + * @return this builder + */ + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** The distributed database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private DbDeploymentType dbDeploymentType; + + /** + * The distributed database deployment type. + * + * @param dbDeploymentType the value to set + * @return this builder + */ + public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + this.__explicitlySet__.add("dbDeploymentType"); + return this; + } + /** The lifecycleDetails for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed database. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private DistributedDbConnectionString connectionStrings; + + public Builder connectionStrings(DistributedDbConnectionString connectionStrings) { + this.connectionStrings = connectionStrings; + this.__explicitlySet__.add("connectionStrings"); + return this; + } + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImageDetails") + private DistributedDbGsmImage latestGsmImageDetails; + + public Builder latestGsmImageDetails(DistributedDbGsmImage latestGsmImageDetails) { + this.latestGsmImageDetails = latestGsmImageDetails; + this.__explicitlySet__.add("latestGsmImageDetails"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** + * The Global service manager listener port number for the Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The Global service manager listener port number for the Globally distributed database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The TLS listener port number for Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed database. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** Ons local port number. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * Ons local port number. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** Ons remote port number. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * Ons remote port number. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** + * The TCP SCAN listener port for database clusters with source type + * XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") + private Integer scanListenerPort; + + /** + * The TCP SCAN listener port for database clusters with source type + * XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. + * + * @param scanListenerPort the value to set + * @return this builder + */ + public Builder scanListenerPort(Integer scanListenerPort) { + this.scanListenerPort = scanListenerPort; + this.__explicitlySet__.add("scanListenerPort"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder + */ + public Builder compositeRaftShardSpaces( + java.util.List compositeRaftShardSpaces) { + this.compositeRaftShardSpaces = compositeRaftShardSpaces; + this.__explicitlySet__.add("compositeRaftShardSpaces"); + return this; + } + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @param compositeDataGuardShardSpaces the value to set + * @return this builder + */ + public Builder compositeDataGuardShardSpaces( + java.util.List compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); + return this; + } + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @param systemRaftClusters the value to set + * @return this builder + */ + public Builder systemRaftClusters(java.util.List systemRaftClusters) { + this.systemRaftClusters = systemRaftClusters; + this.__explicitlySet__.add("systemRaftClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private SystemDataGuardDatabase systemDataGuardDatabases; + + public Builder systemDataGuardDatabases(SystemDataGuardDatabase systemDataGuardDatabases) { + this.systemDataGuardDatabases = systemDataGuardDatabases; + this.__explicitlySet__.add("systemDataGuardDatabases"); + return this; + } + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @param userShardSpaces the value to set + * @return this builder + */ + public Builder userShardSpaces(java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); + return this; + } + /** Catalog details associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private java.util.List catalogDetails; + + /** + * Catalog details associated with the distributed database. + * + * @param catalogDetails the value to set + * @return this builder + */ + public Builder catalogDetails(java.util.List catalogDetails) { + this.catalogDetails = catalogDetails; + this.__explicitlySet__.add("catalogDetails"); + return this; + } + /** Global Service Manager (GSM) instances associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") + private java.util.List gsmDetails; + + /** + * Global Service Manager (GSM) instances associated with the distributed database. + * + * @param gsmDetails the value to set + * @return this builder + */ + public Builder gsmDetails(java.util.List gsmDetails) { + this.gsmDetails = gsmDetails; + this.__explicitlySet__.add("gsmDetails"); + return this; + } + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") + private java.util.List gdsControlNodeDetails; + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed + * database. + * + * @param gdsControlNodeDetails the value to set + * @return this builder + */ + public Builder gdsControlNodeDetails( + java.util.List gdsControlNodeDetails) { + this.gdsControlNodeDetails = gdsControlNodeDetails; + this.__explicitlySet__.add("gdsControlNodeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private DistributedDbBackupConfig dbBackupConfig; + + public Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig) { + this.dbBackupConfig = dbBackupConfig; + this.__explicitlySet__.add("dbBackupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public Builder autoResourceManagementConfig( + AutoResourceManagementConfigurationDetails autoResourceManagementConfig) { + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.__explicitlySet__.add("autoResourceManagementConfig"); + return this; + } + /** The SSH public key for Global service manager instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") + private String gsmSshPublicKey; + + /** + * The SSH public key for Global service manager instances. + * + * @param gsmSshPublicKey the value to set + * @return this builder + */ + public Builder gsmSshPublicKey(String gsmSshPublicKey) { + this.gsmSshPublicKey = gsmSshPublicKey; + this.__explicitlySet__.add("gsmSshPublicKey"); + return this; + } + /** + * The list of network security group (NSG) details associated with the distributed + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the distributed + * database. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabase build() { + DistributedDatabase model = + new DistributedDatabase( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.databaseVersion, + this.lifecycleState, + this.shardingMethod, + this.replicationMethod, + this.dbDeploymentType, + this.lifecycleDetails, + this.connectionStrings, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.latestGsmImageDetails, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.scanListenerPort, + this.systemChunkCount, + this.systemRaftReplicationUnitCount, + this.compositeRaftShardSpaces, + this.compositeDataGuardShardSpaces, + this.systemRaftClusters, + this.systemDataGuardDatabases, + this.userShardSpaces, + this.catalogDetails, + this.gsmDetails, + this.gdsControlNodeDetails, + this.dbBackupConfig, + this.autoResourceManagementConfig, + this.gsmSshPublicKey, + this.vcnNsgIds, + this.metadata, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabase model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("shardingMethod")) { + this.shardingMethod(model.getShardingMethod()); + } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("dbDeploymentType")) { + this.dbDeploymentType(model.getDbDeploymentType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("connectionStrings")) { + this.connectionStrings(model.getConnectionStrings()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("latestGsmImageDetails")) { + this.latestGsmImageDetails(model.getLatestGsmImageDetails()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("scanListenerPort")) { + this.scanListenerPort(model.getScanListenerPort()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); + } + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); + } + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); + } + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); + } + if (model.wasPropertyExplicitlySet("catalogDetails")) { + this.catalogDetails(model.getCatalogDetails()); + } + if (model.wasPropertyExplicitlySet("gsmDetails")) { + this.gsmDetails(model.getGsmDetails()); + } + if (model.wasPropertyExplicitlySet("gdsControlNodeDetails")) { + this.gdsControlNodeDetails(model.getGdsControlNodeDetails()); + } + if (model.wasPropertyExplicitlySet("dbBackupConfig")) { + this.dbBackupConfig(model.getDbBackupConfig()); + } + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); + } + if (model.wasPropertyExplicitlySet("gsmSshPublicKey")) { + this.gsmSshPublicKey(model.getGsmSshPublicKey()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Oracle Database version for the shards and catalog used in Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Lifecycle states for the Globally distributed database. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Lifecycle states for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle states for the Globally distributed database. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Sharding methods for the Globally distributed database. */ + public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { + User("USER"), + System("SYSTEM"), + Composite("COMPOSITE"), + + /** + * 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(ShardingMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShardingMethod v : ShardingMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShardingMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShardingMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShardingMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Sharding methods for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private final ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed database. + * + * @return the value + */ + public ShardingMethod getShardingMethod() { + return shardingMethod; + } + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { + Raft("RAFT"), + Dg("DG"), + + /** + * 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(ReplicationMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationMethod v : ReplicationMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + * + * @return the value + */ + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** The distributed database deployment type. */ + public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { + Exadb("EXADB"), + + /** + * 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(DbDeploymentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbDeploymentType v : DbDeploymentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbDeploymentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbDeploymentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbDeploymentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The distributed database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private final DbDeploymentType dbDeploymentType; + + /** + * The distributed database deployment type. + * + * @return the value + */ + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; + } + + /** The lifecycleDetails for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed database. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private final DistributedDbConnectionString connectionStrings; + + public DistributedDbConnectionString getConnectionStrings() { + return connectionStrings; + } + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImageDetails") + private final DistributedDbGsmImage latestGsmImageDetails; + + public DistributedDbGsmImage getLatestGsmImageDetails() { + return latestGsmImageDetails; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** The Global service manager listener port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The Global service manager listener port number for the Globally distributed database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The TLS listener port number for Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for Globally distributed database. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** Ons local port number. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * Ons local port number. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** Ons remote port number. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * Ons remote port number. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** + * The TCP SCAN listener port for database clusters with source type XS_NEW_VAULT_AND_CLUSTER or + * XS_NEW_CLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") + private final Integer scanListenerPort; + + /** + * The TCP SCAN listener port for database clusters with source type XS_NEW_VAULT_AND_CLUSTER or + * XS_NEW_CLUSTER. + * + * @return the value + */ + public Integer getScanListenerPort() { + return scanListenerPort; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; + + /** + * Collection of composite raft shards. + * + * @return the value + */ + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; + } + + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List compositeDataGuardShardSpaces; + + /** + * Collection of composite data guard shard spaces. + * + * @return the value + */ + public java.util.List getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; + } + + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; + + /** + * Collection of system raft clusters. + * + * @return the value + */ + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final SystemDataGuardDatabase systemDataGuardDatabases; + + public SystemDataGuardDatabase getSystemDataGuardDatabases() { + return systemDataGuardDatabases; + } + + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; + + /** + * Collection of user defined shard spaces. + * + * @return the value + */ + public java.util.List getUserShardSpaces() { + return userShardSpaces; + } + + /** Catalog details associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") + private final java.util.List catalogDetails; + + /** + * Catalog details associated with the distributed database. + * + * @return the value + */ + public java.util.List getCatalogDetails() { + return catalogDetails; + } + + /** Global Service Manager (GSM) instances associated with the distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") + private final java.util.List gsmDetails; + + /** + * Global Service Manager (GSM) instances associated with the distributed database. + * + * @return the value + */ + public java.util.List getGsmDetails() { + return gsmDetails; + } + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") + private final java.util.List gdsControlNodeDetails; + + /** + * Global Database Services Control(GDS CTL) instances associated with the distributed database. + * + * @return the value + */ + public java.util.List getGdsControlNodeDetails() { + return gdsControlNodeDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") + private final DistributedDbBackupConfig dbBackupConfig; + + public DistributedDbBackupConfig getDbBackupConfig() { + return dbBackupConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { + return autoResourceManagementConfig; + } + + /** The SSH public key for Global service manager instances. */ + @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") + private final String gsmSshPublicKey; + + /** + * The SSH public key for Global service manager instances. + * + * @return the value + */ + public String getGsmSshPublicKey() { + return gsmSshPublicKey; + } + + /** + * The list of network security group (NSG) details associated with the distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the distributed database. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabase("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", latestGsmImageDetails=").append(String.valueOf(this.latestGsmImageDetails)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", scanListenerPort=").append(String.valueOf(this.scanListenerPort)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", compositeRaftShardSpaces=") + .append(String.valueOf(this.compositeRaftShardSpaces)); + sb.append(", compositeDataGuardShardSpaces=") + .append(String.valueOf(this.compositeDataGuardShardSpaces)); + sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); + sb.append(", systemDataGuardDatabases=") + .append(String.valueOf(this.systemDataGuardDatabases)); + sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); + sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); + sb.append(", gsmDetails=").append(String.valueOf(this.gsmDetails)); + sb.append(", gdsControlNodeDetails=").append(String.valueOf(this.gdsControlNodeDetails)); + sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); + sb.append(", autoResourceManagementConfig=") + .append(String.valueOf(this.autoResourceManagementConfig)); + sb.append(", gsmSshPublicKey=").append(String.valueOf(this.gsmSshPublicKey)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabase)) { + return false; + } + + DistributedDatabase other = (DistributedDatabase) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) + && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.latestGsmImageDetails, other.latestGsmImageDetails) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.scanListenerPort, other.scanListenerPort) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals( + this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) + && java.util.Objects.equals( + this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) + && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) + && java.util.Objects.equals( + this.systemDataGuardDatabases, other.systemDataGuardDatabases) + && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) + && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) + && java.util.Objects.equals(this.gsmDetails, other.gsmDetails) + && java.util.Objects.equals(this.gdsControlNodeDetails, other.gdsControlNodeDetails) + && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) + && java.util.Objects.equals( + this.autoResourceManagementConfig, other.autoResourceManagementConfig) + && java.util.Objects.equals(this.gsmSshPublicKey, other.gsmSshPublicKey) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.connectionStrings == null ? 43 : this.connectionStrings.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = + (result * PRIME) + + (this.latestGsmImageDetails == null + ? 43 + : this.latestGsmImageDetails.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = + (result * PRIME) + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); + result = + (result * PRIME) + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); + result = + (result * PRIME) + + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); + result = + (result * PRIME) + + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); + result = (result * PRIME) + (this.gsmDetails == null ? 43 : this.gsmDetails.hashCode()); + result = + (result * PRIME) + + (this.gdsControlNodeDetails == null + ? 43 + : this.gdsControlNodeDetails.hashCode()); + result = + (result * PRIME) + + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); + result = + (result * PRIME) + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); + result = + (result * PRIME) + + (this.gsmSshPublicKey == null ? 43 : this.gsmSshPublicKey.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java new file mode 100644 index 00000000000..28a68c801ee --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.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.distributeddatabasev26.model; + +/** + * AutoResourceManagement configuration details for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseAutoResourceManagementDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseAutoResourceManagementDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnabled", + "coolOffPeriodInMinutes", + "maxMoveRuAttempts", + "maxMoveRuUnit", + "mode", + "actionType", + "notificationTopicIds", + "streamIds" + }) + public DistributedDatabaseAutoResourceManagementDetails( + Boolean isEnabled, + Integer coolOffPeriodInMinutes, + Integer maxMoveRuAttempts, + MaxMoveRuUnit maxMoveRuUnit, + Mode mode, + ActionType actionType, + java.util.List notificationTopicIds, + java.util.List streamIds) { + super(); + this.isEnabled = isEnabled; + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.maxMoveRuUnit = maxMoveRuUnit; + this.mode = mode; + this.actionType = actionType; + this.notificationTopicIds = notificationTopicIds; + this.streamIds = streamIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @param coolOffPeriodInMinutes the value to set + * @return this builder + */ + public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { + this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; + this.__explicitlySet__.add("coolOffPeriodInMinutes"); + return this; + } + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @param maxMoveRuAttempts the value to set + * @return this builder + */ + public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { + this.maxMoveRuAttempts = maxMoveRuAttempts; + this.__explicitlySet__.add("maxMoveRuAttempts"); + return this; + } + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @param maxMoveRuUnit the value to set + * @return this builder + */ + public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { + this.maxMoveRuUnit = maxMoveRuUnit; + this.__explicitlySet__.add("maxMoveRuUnit"); + return this; + } + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @param mode the value to set + * @return this builder + */ + public Builder mode(Mode mode) { + this.mode = mode; + this.__explicitlySet__.add("mode"); + return this; + } + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * receive shard-related telemetry. + * + * @param streamIds the value to set + * @return this builder + */ + public Builder streamIds(java.util.List streamIds) { + this.streamIds = streamIds; + this.__explicitlySet__.add("streamIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseAutoResourceManagementDetails build() { + DistributedDatabaseAutoResourceManagementDetails model = + new DistributedDatabaseAutoResourceManagementDetails( + this.isEnabled, + this.coolOffPeriodInMinutes, + this.maxMoveRuAttempts, + this.maxMoveRuUnit, + this.mode, + this.actionType, + this.notificationTopicIds, + this.streamIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseAutoResourceManagementDetails model) { + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { + this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { + this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); + } + if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { + this.maxMoveRuUnit(model.getMaxMoveRuUnit()); + } + if (model.wasPropertyExplicitlySet("mode")) { + this.mode(model.getMode()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("streamIds")) { + this.streamIds(model.getStreamIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Flag indicating if autoResourceManagement is enabled or disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Flag indicating if autoResourceManagement is enabled or disabled. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Time period to wait for the database to get stable after autoResourceManagement event. */ + @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") + private final Integer coolOffPeriodInMinutes; + + /** + * Time period to wait for the database to get stable after autoResourceManagement event. + * + * @return the value + */ + public Integer getCoolOffPeriodInMinutes() { + return coolOffPeriodInMinutes; + } + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") + private final Integer maxMoveRuAttempts; + + /** + * Maximum number of move replication unit attempts allowed within the configured period per + * database. + * + * @return the value + */ + public Integer getMaxMoveRuAttempts() { + return maxMoveRuAttempts; + } + + /** Time unit applicable to maxMoveRuAttempts. */ + public enum MaxMoveRuUnit implements com.oracle.bmc.http.internal.BmcEnum { + Hour("HOUR"), + Day("DAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaxMoveRuUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaxMoveRuUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Time unit applicable to maxMoveRuAttempts. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") + private final MaxMoveRuUnit maxMoveRuUnit; + + /** + * Time unit applicable to maxMoveRuAttempts. + * + * @return the value + */ + public MaxMoveRuUnit getMaxMoveRuUnit() { + return maxMoveRuUnit; + } + + /** Mode of autoResourceManagement execution. */ + public enum Mode implements com.oracle.bmc.http.internal.BmcEnum { + Automatic("AUTOMATIC"), + Recommendation("RECOMMENDATION"), + + /** + * 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(Mode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Mode v : Mode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Mode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Mode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Mode of autoResourceManagement execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("mode") + private final Mode mode; + + /** + * Mode of autoResourceManagement execution. + * + * @return the value + */ + public Mode getMode() { + return mode; + } + + /** The action that will be taken when autoResourceManagement is triggered. */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Move("MOVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The action that will be taken when autoResourceManagement is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action that will be taken when autoResourceManagement is triggered. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The list of notification topic ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive + * autoResourceManagement events. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("streamIds") + private final java.util.List streamIds; + + /** + * The list of stream ids + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive + * shard-related telemetry. + * + * @return the value + */ + public java.util.List getStreamIds() { + return streamIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseAutoResourceManagementDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); + sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); + sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); + sb.append(", mode=").append(String.valueOf(this.mode)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", streamIds=").append(String.valueOf(this.streamIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseAutoResourceManagementDetails)) { + return false; + } + + DistributedDatabaseAutoResourceManagementDetails other = + (DistributedDatabaseAutoResourceManagementDetails) o; + return java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals( + this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) + && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) + && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) + && java.util.Objects.equals(this.mode, other.mode) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.streamIds, other.streamIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.coolOffPeriodInMinutes == null + ? 43 + : this.coolOffPeriodInMinutes.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); + result = + (result * PRIME) + + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); + result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java new file mode 100644 index 00000000000..afc9bd5fb58 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details of a Globally distributed database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalog + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public DistributedDatabaseCatalog( + DistributedDatabaseCatalogReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private DistributedDatabaseCatalogReplicaDetails originalReplica; + + public Builder originalReplica(DistributedDatabaseCatalogReplicaDetails originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replicas for the catalog. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas( + java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalog build() { + DistributedDatabaseCatalog model = + new DistributedDatabaseCatalog(this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalog model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final DistributedDatabaseCatalogReplicaDetails originalReplica; + + public DistributedDatabaseCatalogReplicaDetails getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replicas for the catalog. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalog("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalog)) { + return false; + } + + DistributedDatabaseCatalog other = (DistributedDatabaseCatalog) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java new file mode 100644 index 00000000000..8cb26c34ed5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java @@ -0,0 +1,213 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = DistributedDatabaseCatalogDatabase.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.class, + name = "XS_NEW_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseCatalogDatabaseWithExadbXd.class, + name = "XD_EXISTING_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.class, + name = "XS_NEW_VAULT_AND_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseCatalogDatabaseWithDbHome.class, + name = "EXISTING_DB_HOME"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseCatalogDatabaseWithExadbXs.class, + name = "XS_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DistributedDatabaseCatalogDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) + protected DistributedDatabaseCatalogDatabase( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata) { + super(); + this.name = name; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.metadata = metadata; + } + + /** The name of the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The time the catalog was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the catalog was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the catalog was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the catalog was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabase("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabase)) { + return false; + } + + DistributedDatabaseCatalogDatabase other = (DistributedDatabaseCatalogDatabase) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed database type. Use XS_EXISTING_CLUSTER for a database + * on Exascale Infrastructure that uses a pre-existing cluster. Use XS_NEW_CLUSTER for a + * database on Exascale Infrastructure that requires a new cluster created from scratch. Use + * XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault + * and cluster created from scratch. Use XD_EXISTING_CLUSTER for a database on Dedicated + * Infrastructure that uses a pre-existing cluster. Use EXISTING_DB_HOME for a database on a + * pre-existing database home. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + XsExistingCluster("XS_EXISTING_CLUSTER"), + XsNewCluster("XS_NEW_CLUSTER"), + XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), + XdExistingCluster("XD_EXISTING_CLUSTER"), + ExistingDbHome("EXISTING_DB_HOME"), + + /** + * 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(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java new file mode 100644 index 00000000000..11d68f2446b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog using a pre-existing Database Home.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogDatabaseWithDbHome.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogDatabaseWithDbHome + extends DistributedDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogDatabaseWithDbHome build() { + DistributedDatabaseCatalogDatabaseWithDbHome model = + new DistributedDatabaseCatalogDatabaseWithDbHome( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogDatabaseWithDbHome model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseCatalogDatabaseWithDbHome( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of the distributed database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabaseWithDbHome("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabaseWithDbHome)) { + return false; + } + + DistributedDatabaseCatalogDatabaseWithDbHome other = + (DistributedDatabaseCatalogDatabaseWithDbHome) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java new file mode 100644 index 00000000000..45967564dff --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog running on ExaDB-D.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogDatabaseWithExadbXd.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogDatabaseWithExadbXd + extends DistributedDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogDatabaseWithExadbXd build() { + DistributedDatabaseCatalogDatabaseWithExadbXd model = + new DistributedDatabaseCatalogDatabaseWithExadbXd( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXd model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseCatalogDatabaseWithExadbXd( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of the distributed database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabaseWithExadbXd("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXd)) { + return false; + } + + DistributedDatabaseCatalogDatabaseWithExadbXd other = + (DistributedDatabaseCatalogDatabaseWithExadbXd) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java new file mode 100644 index 00000000000..370caa2cf62 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog running on ExaDB-XS.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogDatabaseWithExadbXs.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogDatabaseWithExadbXs + extends DistributedDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogDatabaseWithExadbXs build() { + DistributedDatabaseCatalogDatabaseWithExadbXs model = + new DistributedDatabaseCatalogDatabaseWithExadbXs( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXs model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseCatalogDatabaseWithExadbXs( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of the distributed database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabaseWithExadbXs("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXs)) { + return false; + } + + DistributedDatabaseCatalogDatabaseWithExadbXs other = + (DistributedDatabaseCatalogDatabaseWithExadbXs) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java new file mode 100644 index 00000000000..8882d78ee9a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java @@ -0,0 +1,730 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog on ExaDB-XS with a new cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster + extends DistributedDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @param exascaleDbStorageVaultId the value to set + * @return this builder + */ + public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.__explicitlySet__.add("exascaleDbStorageVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private DistributedDbVmCluster vmClusterDetails; + + public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster build() { + DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster model = + new DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.availabilityDomain, + this.exascaleDbStorageVaultId, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { + this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String availabilityDomain, + String exascaleDbStorageVaultId, + DistributedDbVmCluster vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** Status of the distributed database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The name of the availability domain that the distributed database catalog will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private final String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @return the value + */ + public String getExascaleDbStorageVaultId() { + return exascaleDbStorageVaultId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final DistributedDbVmCluster vmClusterDetails; + + public DistributedDbVmCluster getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", exascaleDbStorageVaultId=") + .append(String.valueOf(this.exascaleDbStorageVaultId)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster)) { + return false; + } + + DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster other = + (DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.exascaleDbStorageVaultId == null + ? 43 + : this.exascaleDbStorageVaultId.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java new file mode 100644 index 00000000000..38eff79fc01 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java @@ -0,0 +1,708 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database catalog on ExaDB-XS with a new cluster and storage vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster + extends DistributedDatabaseCatalogDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the distributed database catalog. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private DistributedDbStorageVault dbStorageVaultDetails; + + public Builder dbStorageVaultDetails(DistributedDbStorageVault dbStorageVaultDetails) { + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.__explicitlySet__.add("dbStorageVaultDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private DistributedDbVmCluster vmClusterDetails; + + public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster build() { + DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster model = + new DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.availabilityDomain, + this.dbStorageVaultDetails, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { + this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String availabilityDomain, + DistributedDbStorageVault dbStorageVaultDetails, + DistributedDbVmCluster vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** Status of the distributed database catalog. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the distributed database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the distributed database catalog. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The name of the availability domain that the distributed database catalog will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database catalog will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private final DistributedDbStorageVault dbStorageVaultDetails; + + public DistributedDbStorageVault getDbStorageVaultDetails() { + return dbStorageVaultDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final DistributedDbVmCluster vmClusterDetails; + + public DistributedDbVmCluster getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster)) { + return false; + } + + DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster other = + (DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dbStorageVaultDetails == null + ? 43 + : this.dbStorageVaultDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java new file mode 100644 index 00000000000..09269cc9bb4 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java @@ -0,0 +1,168 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a catalog replica.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalogReplicaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCatalogReplicaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public DistributedDatabaseCatalogReplicaDetails( + String name, DistributedDatabaseCatalogDatabase database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private DistributedDatabaseCatalogDatabase database; + + public Builder database(DistributedDatabaseCatalogDatabase database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCatalogReplicaDetails build() { + DistributedDatabaseCatalogReplicaDetails model = + new DistributedDatabaseCatalogReplicaDetails(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCatalogReplicaDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + 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 catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the catalog replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final DistributedDatabaseCatalogDatabase database; + + public DistributedDatabaseCatalogDatabase getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCatalogReplicaDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseCatalogReplicaDetails)) { + return false; + } + + DistributedDatabaseCatalogReplicaDetails other = + (DistributedDatabaseCatalogReplicaDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java new file mode 100644 index 00000000000..42334a3c1e0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.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.distributeddatabasev26.model; + +/** + * Collection of Globally distributed databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DistributedDatabaseCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of Globally distributed database summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Globally distributed database summaries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseCollection build() { + DistributedDatabaseCollection model = new DistributedDatabaseCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Array of Globally distributed database summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Globally distributed database summaries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseCollection("); + 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 DistributedDatabaseCollection)) { + return false; + } + + DistributedDatabaseCollection other = (DistributedDatabaseCollection) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java new file mode 100644 index 00000000000..3a0524b6bb4 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java @@ -0,0 +1,467 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of Global Database Services Control(GDS CTL) instances for the Globally distributed + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseGdsControlNode.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseGdsControlNode + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "subnetId", + "availabilityDomain", + "timeCreated", + "timeUpdated", + "supportingResourceId", + "privateIp", + "gdsControlNodeImageDetails", + "metadata" + }) + public DistributedDatabaseGdsControlNode( + String name, + String subnetId, + String availabilityDomain, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String supportingResourceId, + String privateIp, + DistributedDbGdsControlNodeImage gdsControlNodeImageDetails, + DistributedDbMetadata metadata) { + super(); + this.name = name; + this.subnetId = subnetId; + this.availabilityDomain = availabilityDomain; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.supportingResourceId = supportingResourceId; + this.privateIp = privateIp; + this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the Global Database Services Control instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the Global Database Services Control instance + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The name of the availability domain where the Global Database Services Control instance + * is located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain where the Global Database Services Control instance + * is located in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 + * formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * The identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** IP address of the Global Database Services Control instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private String privateIp; + + /** + * IP address of the Global Database Services Control instance. + * + * @param privateIp the value to set + * @return this builder + */ + public Builder privateIp(String privateIp) { + this.privateIp = privateIp; + this.__explicitlySet__.add("privateIp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") + private DistributedDbGdsControlNodeImage gdsControlNodeImageDetails; + + public Builder gdsControlNodeImageDetails( + DistributedDbGdsControlNodeImage gdsControlNodeImageDetails) { + this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; + this.__explicitlySet__.add("gdsControlNodeImageDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseGdsControlNode build() { + DistributedDatabaseGdsControlNode model = + new DistributedDatabaseGdsControlNode( + this.name, + this.subnetId, + this.availabilityDomain, + this.timeCreated, + this.timeUpdated, + this.supportingResourceId, + this.privateIp, + this.gdsControlNodeImageDetails, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseGdsControlNode model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("privateIp")) { + this.privateIp(model.getPrivateIp()); + } + if (model.wasPropertyExplicitlySet("gdsControlNodeImageDetails")) { + this.gdsControlNodeImageDetails(model.getGdsControlNodeImageDetails()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the Global Database Services Control instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the Global Database Services Control instance + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Global Database Services Control instance. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * The name of the availability domain where the Global Database Services Control instance is + * located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain where the Global Database Services Control instance is + * located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Global Database Services Control instance was created. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Global Database Services Control instance was last updated. An RFC3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * The identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** IP address of the Global Database Services Control instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private final String privateIp; + + /** + * IP address of the Global Database Services Control instance. + * + * @return the value + */ + public String getPrivateIp() { + return privateIp; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") + private final DistributedDbGdsControlNodeImage gdsControlNodeImageDetails; + + public DistributedDbGdsControlNodeImage getGdsControlNodeImageDetails() { + return gdsControlNodeImageDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseGdsControlNode("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", gdsControlNodeImageDetails=") + .append(String.valueOf(this.gdsControlNodeImageDetails)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseGdsControlNode)) { + return false; + } + + DistributedDatabaseGdsControlNode other = (DistributedDatabaseGdsControlNode) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals( + this.gdsControlNodeImageDetails, other.gdsControlNodeImageDetails) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.gdsControlNodeImageDetails == null + ? 43 + : this.gdsControlNodeImageDetails.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java new file mode 100644 index 00000000000..7763038ac81 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java @@ -0,0 +1,552 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of global service manager(GSM also known as shard director) instances for the Globally + * distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseGsm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseGsm + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "computeCount", + "dataStorageSizeInGbs", + "timeCreated", + "timeUpdated", + "status", + "timeSslCertificateExpires", + "supportingResourceId", + "gsmImageDetails", + "metadata" + }) + public DistributedDatabaseGsm( + String name, + Float computeCount, + Double dataStorageSizeInGbs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Status status, + java.util.Date timeSslCertificateExpires, + String supportingResourceId, + DistributedDbGsmImage gsmImageDetails, + DistributedDbMetadata metadata) { + super(); + this.name = name; + this.computeCount = computeCount; + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.status = status; + this.timeSslCertificateExpires = timeSslCertificateExpires; + this.supportingResourceId = supportingResourceId; + this.gsmImageDetails = gsmImageDetails; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the Global service manager instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the Global service manager instance + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The compute count for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + /** + * The compute count for the Global service manager instance. + * + * @param computeCount the value to set + * @return this builder + */ + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + * + * @param dataStorageSizeInGbs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + this.__explicitlySet__.add("dataStorageSizeInGbs"); + return this; + } + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted + * datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Status of the gsm. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of the gsm. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires") + private java.util.Date timeSslCertificateExpires; + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string + * + * @param timeSslCertificateExpires the value to set + * @return this builder + */ + public Builder timeSslCertificateExpires(java.util.Date timeSslCertificateExpires) { + this.timeSslCertificateExpires = timeSslCertificateExpires; + this.__explicitlySet__.add("timeSslCertificateExpires"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gsmImageDetails") + private DistributedDbGsmImage gsmImageDetails; + + public Builder gsmImageDetails(DistributedDbGsmImage gsmImageDetails) { + this.gsmImageDetails = gsmImageDetails; + this.__explicitlySet__.add("gsmImageDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseGsm build() { + DistributedDatabaseGsm model = + new DistributedDatabaseGsm( + this.name, + this.computeCount, + this.dataStorageSizeInGbs, + this.timeCreated, + this.timeUpdated, + this.status, + this.timeSslCertificateExpires, + this.supportingResourceId, + this.gsmImageDetails, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseGsm model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { + this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeSslCertificateExpires")) { + this.timeSslCertificateExpires(model.getTimeSslCertificateExpires()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("gsmImageDetails")) { + this.gsmImageDetails(model.getGsmImageDetails()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the Global service manager instance */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the Global service manager instance + * + * @return the value + */ + public String getName() { + return name; + } + + /** The compute count for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private final Float computeCount; + + /** + * The compute count for the Global service manager instance. + * + * @return the value + */ + public Float getComputeCount() { + return computeCount; + } + + /** The data disk group size to be allocated in GBs for the Global service manager instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") + private final Double dataStorageSizeInGbs; + + /** + * The data disk group size to be allocated in GBs for the Global service manager instance. + * + * @return the value + */ + public Double getDataStorageSizeInGbs() { + return dataStorageSizeInGbs; + } + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Global service manager instance was created. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Status of the gsm. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of the gsm. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of the gsm. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires") + private final java.util.Date timeSslCertificateExpires; + + /** + * The time the ssl certificate associated with Global service manager expires. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeSslCertificateExpires() { + return timeSslCertificateExpires; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gsmImageDetails") + private final DistributedDbGsmImage gsmImageDetails; + + public DistributedDbGsmImage getGsmImageDetails() { + return gsmImageDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseGsm("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", computeCount=").append(String.valueOf(this.computeCount)); + sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeSslCertificateExpires=") + .append(String.valueOf(this.timeSslCertificateExpires)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", gsmImageDetails=").append(String.valueOf(this.gsmImageDetails)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseGsm)) { + return false; + } + + DistributedDatabaseGsm other = (DistributedDatabaseGsm) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.computeCount, other.computeCount) + && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.timeSslCertificateExpires, other.timeSslCertificateExpires) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.gsmImageDetails, other.gsmImageDetails) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGbs == null + ? 43 + : this.dataStorageSizeInGbs.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.timeSslCertificateExpires == null + ? 43 + : this.timeSslCertificateExpires.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.gsmImageDetails == null ? 43 : this.gsmImageDetails.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java new file mode 100644 index 00000000000..a1db2476cdb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java @@ -0,0 +1,806 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * DistributedDatabasePrivateEndpoint resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabasePrivateEndpoint.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabasePrivateEndpoint + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "subnetId", + "vcnId", + "displayName", + "description", + "privateIp", + "vcnNsgIds", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "proxyComputeInstanceId", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedDatabasePrivateEndpoint( + String id, + String compartmentId, + String subnetId, + String vcnId, + String displayName, + String description, + String privateIp, + java.util.List vcnNsgIds, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + String proxyComputeInstanceId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.subnetId = subnetId; + this.vcnId = vcnId; + this.displayName = displayName; + this.description = description; + this.privateIp = privateIp; + this.vcnNsgIds = vcnNsgIds; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.proxyComputeInstanceId = proxyComputeInstanceId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The identifier of the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The identifier of the Private Endpoint. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Identifier of the compartment in which private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Identifier of the compartment in which private endpoint exists. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Identifier of the subnet in which private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Identifier of the subnet in which private endpoint exists. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** Identifier of the VCN in which subnet exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private String vcnId; + + /** + * Identifier of the VCN in which subnet exists. + * + * @param vcnId the value to set + * @return this builder + */ + public Builder vcnId(String vcnId) { + this.vcnId = vcnId; + this.__explicitlySet__.add("vcnId"); + return this; + } + /** DistributedDatabasePrivateEndpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * DistributedDatabasePrivateEndpoint display name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** IP address of the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private String privateIp; + + /** + * IP address of the Private Endpoint. + * + * @param privateIp the value to set + * @return this builder + */ + public Builder privateIp(String privateIp) { + this.privateIp = privateIp; + this.__explicitlySet__.add("privateIp"); + return this; + } + /** + * The list of network security group (NSG) details associated with the private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the private endpoint. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + /** + * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted + * datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the Private Endpoint was last updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Lifecycle states for private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle states for private endpoint. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Detailed message for the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Detailed message for the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The identifier of the proxy compute instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") + private String proxyComputeInstanceId; + + /** + * The identifier of the proxy compute instance. + * + * @param proxyComputeInstanceId the value to set + * @return this builder + */ + public Builder proxyComputeInstanceId(String proxyComputeInstanceId) { + this.proxyComputeInstanceId = proxyComputeInstanceId; + this.__explicitlySet__.add("proxyComputeInstanceId"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabasePrivateEndpoint build() { + DistributedDatabasePrivateEndpoint model = + new DistributedDatabasePrivateEndpoint( + this.id, + this.compartmentId, + this.subnetId, + this.vcnId, + this.displayName, + this.description, + this.privateIp, + this.vcnNsgIds, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.proxyComputeInstanceId, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabasePrivateEndpoint model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("vcnId")) { + this.vcnId(model.getVcnId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("privateIp")) { + this.privateIp(model.getPrivateIp()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("proxyComputeInstanceId")) { + this.proxyComputeInstanceId(model.getProxyComputeInstanceId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The identifier of the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The identifier of the Private Endpoint. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Identifier of the compartment in which private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Identifier of the compartment in which private endpoint exists. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Identifier of the subnet in which private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Identifier of the subnet in which private endpoint exists. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** Identifier of the VCN in which subnet exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private final String vcnId; + + /** + * Identifier of the VCN in which subnet exists. + * + * @return the value + */ + public String getVcnId() { + return vcnId; + } + + /** DistributedDatabasePrivateEndpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * DistributedDatabasePrivateEndpoint display name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** IP address of the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") + private final String privateIp; + + /** + * IP address of the Private Endpoint. + * + * @return the value + */ + public String getPrivateIp() { + return privateIp; + } + + /** The list of network security group (NSG) details associated with the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the private endpoint. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + /** + * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted + * datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the Private Endpoint was last updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Lifecycle states for private endpoint. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Failed("FAILED"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Lifecycle states for private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle states for private endpoint. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Detailed message for the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Detailed message for the lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The identifier of the proxy compute instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") + private final String proxyComputeInstanceId; + + /** + * The identifier of the proxy compute instance. + * + * @return the value + */ + public String getProxyComputeInstanceId() { + return proxyComputeInstanceId; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabasePrivateEndpoint("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", vcnId=").append(String.valueOf(this.vcnId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", proxyComputeInstanceId=").append(String.valueOf(this.proxyComputeInstanceId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabasePrivateEndpoint)) { + return false; + } + + DistributedDatabasePrivateEndpoint other = (DistributedDatabasePrivateEndpoint) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.proxyComputeInstanceId, other.proxyComputeInstanceId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.proxyComputeInstanceId == null + ? 43 + : this.proxyComputeInstanceId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java new file mode 100644 index 00000000000..d91d249576a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Collection of private endpoints.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabasePrivateEndpointCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabasePrivateEndpointCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DistributedDatabasePrivateEndpointCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of private endpoint summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of private endpoint summaries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabasePrivateEndpointCollection build() { + DistributedDatabasePrivateEndpointCollection model = + new DistributedDatabasePrivateEndpointCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabasePrivateEndpointCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Array of private endpoint summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of private endpoint summaries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabasePrivateEndpointCollection("); + 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 DistributedDatabasePrivateEndpointCollection)) { + return false; + } + + DistributedDatabasePrivateEndpointCollection other = + (DistributedDatabasePrivateEndpointCollection) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java new file mode 100644 index 00000000000..9af84c736c0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java @@ -0,0 +1,668 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * DistributedDatabasePrivateEndpoint resource summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabasePrivateEndpointSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabasePrivateEndpointSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "compartmentId", + "subnetId", + "vcnId", + "displayName", + "vcnNsgIds", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedDatabasePrivateEndpointSummary( + String id, + String description, + String compartmentId, + String subnetId, + String vcnId, + String displayName, + java.util.List vcnNsgIds, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.description = description; + this.compartmentId = compartmentId; + this.subnetId = subnetId; + this.vcnId = vcnId; + this.displayName = displayName; + this.vcnNsgIds = vcnNsgIds; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** DistributedDatabasePrivateEndpoint identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * DistributedDatabasePrivateEndpoint identifier + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Identifier of the compartment where private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Identifier of the compartment where private endpoint exists. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Identifier of the customer subnet against which private endpoint is created. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Identifier of the customer subnet against which private endpoint is created. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** Identifier of the VCN in which subnet exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private String vcnId; + + /** + * Identifier of the VCN in which subnet exists. + * + * @param vcnId the value to set + * @return this builder + */ + public Builder vcnId(String vcnId) { + this.vcnId = vcnId; + this.__explicitlySet__.add("vcnId"); + return this; + } + /** Private endpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Private endpoint display name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The list of network security group (NSG) details associated with the private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the private endpoint. + * + * @param vcnNsgIds the value to set + * @return this builder + */ + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); + return this; + } + /** The time the the private endpoint was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the private endpoint was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the private endpoint was last updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the private endpoint was last updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Lifecycle state of private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; + + /** + * Lifecycle state of private endpoint. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState( + DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Detailed message for the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Detailed message for the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabasePrivateEndpointSummary build() { + DistributedDatabasePrivateEndpointSummary model = + new DistributedDatabasePrivateEndpointSummary( + this.id, + this.description, + this.compartmentId, + this.subnetId, + this.vcnId, + this.displayName, + this.vcnNsgIds, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabasePrivateEndpointSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("vcnId")) { + this.vcnId(model.getVcnId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** DistributedDatabasePrivateEndpoint identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * DistributedDatabasePrivateEndpoint identifier + * + * @return the value + */ + public String getId() { + return id; + } + + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Identifier of the compartment where private endpoint exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Identifier of the compartment where private endpoint exists. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Identifier of the customer subnet against which private endpoint is created. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Identifier of the customer subnet against which private endpoint is created. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** Identifier of the VCN in which subnet exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private final String vcnId; + + /** + * Identifier of the VCN in which subnet exists. + * + * @return the value + */ + public String getVcnId() { + return vcnId; + } + + /** Private endpoint display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Private endpoint display name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The list of network security group (NSG) details associated with the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private final java.util.List vcnNsgIds; + + /** + * The list of network security group (NSG) details associated with the private endpoint. + * + * @return the value + */ + public java.util.List getVcnNsgIds() { + return vcnNsgIds; + } + + /** The time the the private endpoint was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the private endpoint was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the private endpoint was last updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the private endpoint was last updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Lifecycle state of private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; + + /** + * Lifecycle state of private endpoint. + * + * @return the value + */ + public DistributedDatabasePrivateEndpoint.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Detailed message for the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Detailed message for the lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabasePrivateEndpointSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", vcnId=").append(String.valueOf(this.vcnId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabasePrivateEndpointSummary)) { + return false; + } + + DistributedDatabasePrivateEndpointSummary other = + (DistributedDatabasePrivateEndpointSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java new file mode 100644 index 00000000000..fe7da894641 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.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.distributeddatabasev26.model; + +/** + * Raft metrics for shards and catalog for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseRaftMetric.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseRaftMetric + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"raftMetrics", "configTasks"}) + public DistributedDatabaseRaftMetric( + java.util.Map raftMetrics, java.util.Map configTasks) { + super(); + this.raftMetrics = raftMetrics; + this.configTasks = configTasks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Raft metrics for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") + private java.util.Map raftMetrics; + + /** + * Raft metrics for the Globally distributed database. + * + * @param raftMetrics the value to set + * @return this builder + */ + public Builder raftMetrics(java.util.Map raftMetrics) { + this.raftMetrics = raftMetrics; + this.__explicitlySet__.add("raftMetrics"); + return this; + } + /** Details of in-progress configuration tasks. */ + @com.fasterxml.jackson.annotation.JsonProperty("configTasks") + private java.util.Map configTasks; + + /** + * Details of in-progress configuration tasks. + * + * @param configTasks the value to set + * @return this builder + */ + public Builder configTasks(java.util.Map configTasks) { + this.configTasks = configTasks; + this.__explicitlySet__.add("configTasks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseRaftMetric build() { + DistributedDatabaseRaftMetric model = + new DistributedDatabaseRaftMetric(this.raftMetrics, this.configTasks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseRaftMetric model) { + if (model.wasPropertyExplicitlySet("raftMetrics")) { + this.raftMetrics(model.getRaftMetrics()); + } + if (model.wasPropertyExplicitlySet("configTasks")) { + this.configTasks(model.getConfigTasks()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Raft metrics for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") + private final java.util.Map raftMetrics; + + /** + * Raft metrics for the Globally distributed database. + * + * @return the value + */ + public java.util.Map getRaftMetrics() { + return raftMetrics; + } + + /** Details of in-progress configuration tasks. */ + @com.fasterxml.jackson.annotation.JsonProperty("configTasks") + private final java.util.Map configTasks; + + /** + * Details of in-progress configuration tasks. + * + * @return the value + */ + public java.util.Map getConfigTasks() { + return configTasks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseRaftMetric("); + sb.append("super=").append(super.toString()); + sb.append("raftMetrics=").append(String.valueOf(this.raftMetrics)); + sb.append(", configTasks=").append(String.valueOf(this.configTasks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseRaftMetric)) { + return false; + } + + DistributedDatabaseRaftMetric other = (DistributedDatabaseRaftMetric) o; + return java.util.Objects.equals(this.raftMetrics, other.raftMetrics) + && java.util.Objects.equals(this.configTasks, other.configTasks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.raftMetrics == null ? 43 : this.raftMetrics.hashCode()); + result = (result * PRIME) + (this.configTasks == null ? 43 : this.configTasks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java new file mode 100644 index 00000000000..e6d2edbb500 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Move RU invocation history for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseRuChangeLog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseRuChangeLog + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ruChangeLog"}) + public DistributedDatabaseRuChangeLog( + java.util.List ruChangeLog) { + super(); + this.ruChangeLog = ruChangeLog; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Ordered list of move RU invocations (latest first). */ + @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") + private java.util.List ruChangeLog; + + /** + * Ordered list of move RU invocations (latest first). + * + * @param ruChangeLog the value to set + * @return this builder + */ + public Builder ruChangeLog( + java.util.List ruChangeLog) { + this.ruChangeLog = ruChangeLog; + this.__explicitlySet__.add("ruChangeLog"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseRuChangeLog build() { + DistributedDatabaseRuChangeLog model = + new DistributedDatabaseRuChangeLog(this.ruChangeLog); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseRuChangeLog model) { + if (model.wasPropertyExplicitlySet("ruChangeLog")) { + this.ruChangeLog(model.getRuChangeLog()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Ordered list of move RU invocations (latest first). */ + @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") + private final java.util.List ruChangeLog; + + /** + * Ordered list of move RU invocations (latest first). + * + * @return the value + */ + public java.util.List getRuChangeLog() { + return ruChangeLog; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseRuChangeLog("); + sb.append("super=").append(super.toString()); + sb.append("ruChangeLog=").append(String.valueOf(this.ruChangeLog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseRuChangeLog)) { + return false; + } + + DistributedDatabaseRuChangeLog other = (DistributedDatabaseRuChangeLog) o; + return java.util.Objects.equals(this.ruChangeLog, other.ruChangeLog) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ruChangeLog == null ? 43 : this.ruChangeLog.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java new file mode 100644 index 00000000000..b3a16c78bba --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java @@ -0,0 +1,418 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * One move RU invocation record for the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseRuChangeLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseRuChangeLogSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceShardName", + "targetShardName", + "ruId", + "status", + "triggeredBy", + "timeCreated", + "timeUpdated" + }) + public DistributedDatabaseRuChangeLogSummary( + String sourceShardName, + String targetShardName, + String ruId, + Status status, + String triggeredBy, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.sourceShardName = sourceShardName; + this.targetShardName = targetShardName; + this.ruId = ruId; + this.status = status; + this.triggeredBy = triggeredBy; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Source shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private String sourceShardName; + + /** + * Source shard for move RU invocation. + * + * @param sourceShardName the value to set + * @return this builder + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + this.__explicitlySet__.add("sourceShardName"); + return this; + } + /** Target shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") + private String targetShardName; + + /** + * Target shard for move RU invocation. + * + * @param targetShardName the value to set + * @return this builder + */ + public Builder targetShardName(String targetShardName) { + this.targetShardName = targetShardName; + this.__explicitlySet__.add("targetShardName"); + return this; + } + /** Replication unit identifier associated with the invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruId") + private String ruId; + + /** + * Replication unit identifier associated with the invocation. + * + * @param ruId the value to set + * @return this builder + */ + public Builder ruId(String ruId) { + this.ruId = ruId; + this.__explicitlySet__.add("ruId"); + return this; + } + /** Current or terminal status of the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Current or terminal status of the move RU invocation. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Actor who triggered the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private String triggeredBy; + + /** + * Actor who triggered the move RU invocation. + * + * @param triggeredBy the value to set + * @return this builder + */ + public Builder triggeredBy(String triggeredBy) { + this.triggeredBy = triggeredBy; + this.__explicitlySet__.add("triggeredBy"); + return this; + } + /** Entry creation timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Entry creation timestamp in UTC. + * + * @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; + } + /** Entry update timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Entry update timestamp in UTC. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseRuChangeLogSummary build() { + DistributedDatabaseRuChangeLogSummary model = + new DistributedDatabaseRuChangeLogSummary( + this.sourceShardName, + this.targetShardName, + this.ruId, + this.status, + this.triggeredBy, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseRuChangeLogSummary model) { + if (model.wasPropertyExplicitlySet("sourceShardName")) { + this.sourceShardName(model.getSourceShardName()); + } + if (model.wasPropertyExplicitlySet("targetShardName")) { + this.targetShardName(model.getTargetShardName()); + } + if (model.wasPropertyExplicitlySet("ruId")) { + this.ruId(model.getRuId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("triggeredBy")) { + this.triggeredBy(model.getTriggeredBy()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Source shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private final String sourceShardName; + + /** + * Source shard for move RU invocation. + * + * @return the value + */ + public String getSourceShardName() { + return sourceShardName; + } + + /** Target shard for move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") + private final String targetShardName; + + /** + * Target shard for move RU invocation. + * + * @return the value + */ + public String getTargetShardName() { + return targetShardName; + } + + /** Replication unit identifier associated with the invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruId") + private final String ruId; + + /** + * Replication unit identifier associated with the invocation. + * + * @return the value + */ + public String getRuId() { + return ruId; + } + + /** Current or terminal status of the move RU invocation. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Queued("QUEUED"), + InProgress("IN_PROGRESS"), + Completed("COMPLETED"), + + /** + * 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Current or terminal status of the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Current or terminal status of the move RU invocation. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** Actor who triggered the move RU invocation. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private final String triggeredBy; + + /** + * Actor who triggered the move RU invocation. + * + * @return the value + */ + public String getTriggeredBy() { + return triggeredBy; + } + + /** Entry creation timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Entry creation timestamp in UTC. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Entry update timestamp in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Entry update timestamp in UTC. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseRuChangeLogSummary("); + sb.append("super=").append(super.toString()); + sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); + sb.append(", targetShardName=").append(String.valueOf(this.targetShardName)); + sb.append(", ruId=").append(String.valueOf(this.ruId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseRuChangeLogSummary)) { + return false; + } + + DistributedDatabaseRuChangeLogSummary other = (DistributedDatabaseRuChangeLogSummary) o; + return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.targetShardName, other.targetShardName) + && java.util.Objects.equals(this.ruId, other.ruId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = + (result * PRIME) + + (this.targetShardName == null ? 43 : this.targetShardName.hashCode()); + result = (result * PRIME) + (this.ruId == null ? 43 : this.ruId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java new file mode 100644 index 00000000000..e3126ebcceb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java @@ -0,0 +1,213 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = DistributedDatabaseShardDatabase.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseShardDatabaseWithExadbXsNewCluster.class, + name = "XS_NEW_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.class, + name = "XS_NEW_VAULT_AND_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseShardDatabaseWithExadbXd.class, + name = "XD_EXISTING_CLUSTER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseShardDatabaseWithDbHome.class, + name = "EXISTING_DB_HOME"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DistributedDatabaseShardDatabaseWithExadbXs.class, + name = "XS_EXISTING_CLUSTER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DistributedDatabaseShardDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) + protected DistributedDatabaseShardDatabase( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata) { + super(); + this.name = name; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.metadata = metadata; + } + + /** Name of the shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the shard. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The time the shard was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the shard was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the shard was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the shard was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabase("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabase)) { + return false; + } + + DistributedDatabaseShardDatabase other = (DistributedDatabaseShardDatabase) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The source of the Globally distributed database type. Use XS_EXISTING_CLUSTER for a database + * on Exascale Infrastructure that uses a pre-existing cluster. Use XS_NEW_CLUSTER for a + * database on Exascale Infrastructure that requires a new cluster created from scratch. Use + * XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault + * and cluster created from scratch. Use XD_EXISTING_CLUSTER for a database on Dedicated + * Infrastructure that uses a pre-existing cluster. Use EXISTING_DB_HOME for a database on a + * pre-existing database home. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + XsExistingCluster("XS_EXISTING_CLUSTER"), + XsNewCluster("XS_NEW_CLUSTER"), + XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), + XdExistingCluster("XD_EXISTING_CLUSTER"), + ExistingDbHome("EXISTING_DB_HOME"), + + /** + * 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(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java new file mode 100644 index 00000000000..87588a56a74 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard using a pre-existing Database Home.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseShardDatabaseWithDbHome.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseShardDatabaseWithDbHome + extends DistributedDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of distributed database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseShardDatabaseWithDbHome build() { + DistributedDatabaseShardDatabaseWithDbHome model = + new DistributedDatabaseShardDatabaseWithDbHome( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseShardDatabaseWithDbHome model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseShardDatabaseWithDbHome( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of distributed database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of distributed database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabaseWithDbHome("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabaseWithDbHome)) { + return false; + } + + DistributedDatabaseShardDatabaseWithDbHome other = + (DistributedDatabaseShardDatabaseWithDbHome) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java new file mode 100644 index 00000000000..53b488f483f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard running on ExaDB-D.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseShardDatabaseWithExadbXd.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseShardDatabaseWithExadbXd + extends DistributedDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of distributed database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseShardDatabaseWithExadbXd build() { + DistributedDatabaseShardDatabaseWithExadbXd model = + new DistributedDatabaseShardDatabaseWithExadbXd( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseShardDatabaseWithExadbXd model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseShardDatabaseWithExadbXd( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Cloud VM Cluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of distributed database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of distributed database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabaseWithExadbXd("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXd)) { + return false; + } + + DistributedDatabaseShardDatabaseWithExadbXd other = + (DistributedDatabaseShardDatabaseWithExadbXd) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java new file mode 100644 index 00000000000..1cc9346211b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java @@ -0,0 +1,650 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard running on ExaDB-XS.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseShardDatabaseWithExadbXs.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseShardDatabaseWithExadbXs + extends DistributedDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of distributed database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseShardDatabaseWithExadbXs build() { + DistributedDatabaseShardDatabaseWithExadbXs model = + new DistributedDatabaseShardDatabaseWithExadbXs( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vmClusterId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseShardDatabaseWithExadbXs model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseShardDatabaseWithExadbXs( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vmClusterId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vmClusterId = vmClusterId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VmCluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** Status of distributed database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of distributed database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabaseWithExadbXs("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXs)) { + return false; + } + + DistributedDatabaseShardDatabaseWithExadbXs other = + (DistributedDatabaseShardDatabaseWithExadbXs) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java new file mode 100644 index 00000000000..098558fb426 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java @@ -0,0 +1,730 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard on ExaDB-XS with a new cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseShardDatabaseWithExadbXsNewCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseShardDatabaseWithExadbXsNewCluster + extends DistributedDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of distributed database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The name of the availability domain that the distributed database shard will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @param exascaleDbStorageVaultId the value to set + * @return this builder + */ + public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.__explicitlySet__.add("exascaleDbStorageVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private DistributedDbVmCluster vmClusterDetails; + + public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseShardDatabaseWithExadbXsNewCluster build() { + DistributedDatabaseShardDatabaseWithExadbXsNewCluster model = + new DistributedDatabaseShardDatabaseWithExadbXsNewCluster( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.availabilityDomain, + this.exascaleDbStorageVaultId, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseShardDatabaseWithExadbXsNewCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { + this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseShardDatabaseWithExadbXsNewCluster( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String availabilityDomain, + String exascaleDbStorageVaultId, + DistributedDbVmCluster vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.availabilityDomain = availabilityDomain; + this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** Status of distributed database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of distributed database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The name of the availability domain that the distributed database shard will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") + private final String exascaleDbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * exascale db storage vault. + * + * @return the value + */ + public String getExascaleDbStorageVaultId() { + return exascaleDbStorageVaultId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final DistributedDbVmCluster vmClusterDetails; + + public DistributedDbVmCluster getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabaseWithExadbXsNewCluster("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", exascaleDbStorageVaultId=") + .append(String.valueOf(this.exascaleDbStorageVaultId)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXsNewCluster)) { + return false; + } + + DistributedDatabaseShardDatabaseWithExadbXsNewCluster other = + (DistributedDatabaseShardDatabaseWithExadbXsNewCluster) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.exascaleDbStorageVaultId == null + ? 43 + : this.exascaleDbStorageVaultId.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java new file mode 100644 index 00000000000..39b5008b6b1 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java @@ -0,0 +1,708 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of a distributed database shard on ExaDB-XS with a new cluster and storage vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster + extends DistributedDatabaseShardDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @param dbHomeId the value to set + * @return this builder + */ + public Builder dbHomeId(String dbHomeId) { + this.dbHomeId = dbHomeId; + this.__explicitlySet__.add("dbHomeId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container that is used as the master encryption key in database transparent data + * encryption (TDE) operations. + * + * @param kmsKeyId the value to set + * @return this builder + */ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key container version that is used in database transparent data encryption (TDE) + * operations KMS Key can have multiple key versions. + * + * @param kmsKeyVersionId the value to set + * @return this builder + */ + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Status of distributed database shard. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @param supportingResourceId the value to set + * @return this builder + */ + public Builder supportingResourceId(String supportingResourceId) { + this.supportingResourceId = supportingResourceId; + this.__explicitlySet__.add("supportingResourceId"); + return this; + } + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @param containerDatabaseId the value to set + * @return this builder + */ + public Builder containerDatabaseId(String containerDatabaseId) { + this.containerDatabaseId = containerDatabaseId; + this.__explicitlySet__.add("containerDatabaseId"); + return this; + } + /** + * The name of the availability domain that the distributed database shard will be located + * in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located + * in. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private DistributedDbStorageVault dbStorageVaultDetails; + + public Builder dbStorageVaultDetails(DistributedDbStorageVault dbStorageVaultDetails) { + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.__explicitlySet__.add("dbStorageVaultDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private DistributedDbVmCluster vmClusterDetails; + + public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { + this.vmClusterDetails = vmClusterDetails; + this.__explicitlySet__.add("vmClusterDetails"); + return this; + } + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(DistributedDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(DistributedDbTransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster build() { + DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster model = + new DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster( + this.name, + this.timeCreated, + this.timeUpdated, + this.metadata, + this.dbHomeId, + this.vaultId, + this.kmsKeyId, + this.kmsKeyVersionId, + this.status, + this.supportingResourceId, + this.containerDatabaseId, + this.availabilityDomain, + this.dbStorageVaultDetails, + this.vmClusterDetails, + this.protectionMode, + this.transportType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dbHomeId")) { + this.dbHomeId(model.getDbHomeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("supportingResourceId")) { + this.supportingResourceId(model.getSupportingResourceId()); + } + if (model.wasPropertyExplicitlySet("containerDatabaseId")) { + this.containerDatabaseId(model.getContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { + this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterDetails")) { + this.vmClusterDetails(model.getVmClusterDetails()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + DistributedDbMetadata metadata, + String dbHomeId, + String vaultId, + String kmsKeyId, + String kmsKeyVersionId, + Status status, + String supportingResourceId, + String containerDatabaseId, + String availabilityDomain, + DistributedDbStorageVault dbStorageVaultDetails, + DistributedDbVmCluster vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(name, timeCreated, timeUpdated, metadata); + this.dbHomeId = dbHomeId; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.status = status; + this.supportingResourceId = supportingResourceId; + this.containerDatabaseId = containerDatabaseId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + this.protectionMode = protectionMode; + this.transportType = transportType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") + private final String dbHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Home. + * + * @return the value + */ + public String getDbHomeId() { + return dbHomeId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Cloud Infrastructure + * [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). + * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container that is used as the master encryption key in database transparent data encryption + * (TDE) operations. + * + * @return the value + */ + public String getKmsKeyId() { + return kmsKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key + * container version that is used in database transparent data encryption (TDE) operations KMS + * Key can have multiple key versions. + * + * @return the value + */ + public String getKmsKeyVersionId() { + return kmsKeyVersionId; + } + + /** Status of distributed database shard. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + Updating("UPDATING"), + Creating("CREATING"), + Created("CREATED"), + ReadyForConfiguration("READY_FOR_CONFIGURATION"), + Configured("CONFIGURED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Status of distributed database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Status of distributed database shard. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** the identifier of the underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") + private final String supportingResourceId; + + /** + * the identifier of the underlying supporting resource. + * + * @return the value + */ + public String getSupportingResourceId() { + return supportingResourceId; + } + + /** the identifier of the container database for underlying supporting resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") + private final String containerDatabaseId; + + /** + * the identifier of the container database for underlying supporting resource. + * + * @return the value + */ + public String getContainerDatabaseId() { + return containerDatabaseId; + } + + /** + * The name of the availability domain that the distributed database shard will be located in. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain that the distributed database shard will be located in. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + private final DistributedDbStorageVault dbStorageVaultDetails; + + public DistributedDbStorageVault getDbStorageVaultDetails() { + return dbStorageVaultDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + private final DistributedDbVmCluster vmClusterDetails; + + public DistributedDbVmCluster getVmClusterDetails() { + return vmClusterDetails; + } + + /** The protection mode used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedDbProtectionMode protectionMode; + + /** + * The protection mode used for the Data Guard association. + * + * @return the value + */ + public DistributedDbProtectionMode getProtectionMode() { + return protectionMode; + } + + /** The transport type used for the Data Guard association. */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final DistributedDbTransportType transportType; + + /** + * The transport type used for the Data Guard association. + * + * @return the value + */ + public DistributedDbTransportType getTransportType() { + return transportType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); + sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); + sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster)) { + return false; + } + + DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster other = + (DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster) o; + return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) + && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) + && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.supportingResourceId == null + ? 43 + : this.supportingResourceId.hashCode()); + result = + (result * PRIME) + + (this.containerDatabaseId == null + ? 43 + : this.containerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dbStorageVaultDetails == null + ? 43 + : this.dbStorageVaultDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java new file mode 100644 index 00000000000..4a9d43b6fa0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java @@ -0,0 +1,1401 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDatabaseSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "databaseVersion", + "lifecycleState", + "lifecycleDetails", + "prefix", + "privateEndpointIds", + "notificationTopicIds", + "characterSet", + "ncharacterSet", + "listenerPort", + "listenerPortTls", + "onsPortLocal", + "onsPortRemote", + "systemChunkCount", + "autoResourceManagementConfig", + "systemRaftReplicationUnitCount", + "metadata", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", + "freeformTags", + "definedTags", + "systemTags" + }) + public DistributedDatabaseSummary( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String databaseVersion, + DistributedDatabase.LifecycleState lifecycleState, + String lifecycleDetails, + String prefix, + java.util.List privateEndpointIds, + java.util.List notificationTopicIds, + String characterSet, + String ncharacterSet, + Integer listenerPort, + Integer listenerPortTls, + Integer onsPortLocal, + Integer onsPortRemote, + Integer systemChunkCount, + AutoResourceManagementConfigurationDetails autoResourceManagementConfig, + Integer systemRaftReplicationUnitCount, + DistributedDbMetadata metadata, + ShardingMethod shardingMethod, + ReplicationMethod replicationMethod, + DbDeploymentType dbDeploymentType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.databaseVersion = databaseVersion; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.prefix = prefix; + this.privateEndpointIds = privateEndpointIds; + this.notificationTopicIds = notificationTopicIds; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.listenerPort = listenerPort; + this.listenerPortTls = listenerPortTls; + this.onsPortLocal = onsPortLocal; + this.onsPortRemote = onsPortRemote; + this.systemChunkCount = systemChunkCount; + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.metadata = metadata; + this.shardingMethod = shardingMethod; + this.replicationMethod = replicationMethod; + this.dbDeploymentType = dbDeploymentType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Globally distributed database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime + * string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted + * datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted + * datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Lifecycle state of sharded database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DistributedDatabase.LifecycleState lifecycleState; + + /** + * Lifecycle state of sharded database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(DistributedDatabase.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The lifecycleDetails for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed database. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and + * number. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * private endpoint associated with Globally distributed autonomous database. + * + * @param privateEndpointIds the value to set + * @return this builder + */ + public Builder privateEndpointIds(java.util.List privateEndpointIds) { + this.privateEndpointIds = privateEndpointIds; + this.__explicitlySet__.add("privateEndpointIds"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + /** + * The character set for the database. + * + * @param characterSet the value to set + * @return this builder + */ + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + /** + * The national character set for the database. + * + * @param ncharacterSet the value to set + * @return this builder + */ + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + /** The listener port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener port number for the Globally distributed database. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The TLS listener port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed database. + * + * @param listenerPortTls the value to set + * @return this builder + */ + public Builder listenerPortTls(Integer listenerPortTls) { + this.listenerPortTls = listenerPortTls; + this.__explicitlySet__.add("listenerPortTls"); + return this; + } + /** Ons local port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private Integer onsPortLocal; + + /** + * Ons local port number for the Globally distributed database. + * + * @param onsPortLocal the value to set + * @return this builder + */ + public Builder onsPortLocal(Integer onsPortLocal) { + this.onsPortLocal = onsPortLocal; + this.__explicitlySet__.add("onsPortLocal"); + return this; + } + /** Ons remote port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private Integer onsPortRemote; + + /** + * Ons remote port number for the Globally distributed database. + * + * @param onsPortRemote the value to set + * @return this builder + */ + public Builder onsPortRemote(Integer onsPortRemote) { + this.onsPortRemote = onsPortRemote; + this.__explicitlySet__.add("onsPortRemote"); + return this; + } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @param systemChunkCount the value to set + * @return this builder + */ + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public Builder autoResourceManagementConfig( + AutoResourceManagementConfigurationDetails autoResourceManagementConfig) { + this.autoResourceManagementConfig = autoResourceManagementConfig; + this.__explicitlySet__.add("autoResourceManagementConfig"); + return this; + } + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder + */ + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private DistributedDbMetadata metadata; + + public Builder metadata(DistributedDbMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** Sharding methods for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed database. + * + * @param shardingMethod the value to set + * @return this builder + */ + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); + return this; + } + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not + * set any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not + * set any value for replicationMethod. + * + * @param replicationMethod the value to set + * @return this builder + */ + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** The distributed database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private DbDeploymentType dbDeploymentType; + + /** + * The distributed database deployment type. + * + * @param dbDeploymentType the value to set + * @return this builder + */ + public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + this.__explicitlySet__.add("dbDeploymentType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDatabaseSummary build() { + DistributedDatabaseSummary model = + new DistributedDatabaseSummary( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.databaseVersion, + this.lifecycleState, + this.lifecycleDetails, + this.prefix, + this.privateEndpointIds, + this.notificationTopicIds, + this.characterSet, + this.ncharacterSet, + this.listenerPort, + this.listenerPortTls, + this.onsPortLocal, + this.onsPortRemote, + this.systemChunkCount, + this.autoResourceManagementConfig, + this.systemRaftReplicationUnitCount, + this.metadata, + this.shardingMethod, + this.replicationMethod, + this.dbDeploymentType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDatabaseSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIds")) { + this.privateEndpointIds(model.getPrivateEndpointIds()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortTls")) { + this.listenerPortTls(model.getListenerPortTls()); + } + if (model.wasPropertyExplicitlySet("onsPortLocal")) { + this.onsPortLocal(model.getOnsPortLocal()); + } + if (model.wasPropertyExplicitlySet("onsPortRemote")) { + this.onsPortRemote(model.getOnsPortRemote()); + } + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("shardingMethod")) { + this.shardingMethod(model.getShardingMethod()); + } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("dbDeploymentType")) { + this.dbDeploymentType(model.getDbDeploymentType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Globally distributed database compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Globally distributed database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the Globally distributed database was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime + * string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Oracle Database version for the shards and catalog used in Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Oracle Database version for the shards and catalog used in Globally distributed database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Lifecycle state of sharded database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DistributedDatabase.LifecycleState lifecycleState; + + /** + * Lifecycle state of sharded database. + * + * @return the value + */ + public DistributedDatabase.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The lifecycleDetails for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The lifecycleDetails for the Globally distributed database. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are + * allowed. First character has to be a letter followed by any combination of letter and number. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") + private final java.util.List privateEndpointIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private + * endpoint associated with Globally distributed autonomous database. + * + * @return the value + */ + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; + + /** + * The character set for the database. + * + * @return the value + */ + public String getCharacterSet() { + return characterSet; + } + + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + + /** + * The national character set for the database. + * + * @return the value + */ + public String getNcharacterSet() { + return ncharacterSet; + } + + /** The listener port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener port number for the Globally distributed database. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The TLS listener port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") + private final Integer listenerPortTls; + + /** + * The TLS listener port number for the Globally distributed database. + * + * @return the value + */ + public Integer getListenerPortTls() { + return listenerPortTls; + } + + /** Ons local port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") + private final Integer onsPortLocal; + + /** + * Ons local port number for the Globally distributed database. + * + * @return the value + */ + public Integer getOnsPortLocal() { + return onsPortLocal; + } + + /** Ons remote port number for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") + private final Integer onsPortRemote; + + /** + * Ons remote port number for the Globally distributed database. + * + * @return the value + */ + public Integer getOnsPortRemote() { + return onsPortRemote; + } + + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; + + /** + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value + */ + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") + private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; + + public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { + return autoResourceManagementConfig; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; + + /** + * Number of replication units associated with system raft clusters. + * + * @return the value + */ + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final DistributedDbMetadata metadata; + + public DistributedDbMetadata getMetadata() { + return metadata; + } + + /** Sharding methods for the Globally distributed database. */ + public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { + User("USER"), + System("SYSTEM"), + Composite("COMPOSITE"), + + /** + * 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(ShardingMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShardingMethod v : ShardingMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShardingMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShardingMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShardingMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Sharding methods for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") + private final ShardingMethod shardingMethod; + + /** + * Sharding methods for the Globally distributed database. + * + * @return the value + */ + public ShardingMethod getShardingMethod() { + return shardingMethod; + } + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { + Raft("RAFT"), + Dg("DG"), + + /** + * 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(ReplicationMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationMethod v : ReplicationMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; + + /** + * The Replication method for Globally distributed database. Use RAFT for Raft based + * replication. With RAFT replication, shards cannot have peers details set on them. In case + * shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT + * replication cases (with or without peers), please set replicationMethod as DG or do not set + * any value for replicationMethod. + * + * @return the value + */ + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** The distributed database deployment type. */ + public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { + Exadb("EXADB"), + + /** + * 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(DbDeploymentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbDeploymentType v : DbDeploymentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbDeploymentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbDeploymentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbDeploymentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The distributed database deployment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") + private final DbDeploymentType dbDeploymentType; + + /** + * The distributed database deployment type. + * + * @return the value + */ + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDatabaseSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", characterSet=").append(String.valueOf(this.characterSet)); + sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); + sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); + sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); + sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); + sb.append(", autoResourceManagementConfig=") + .append(String.valueOf(this.autoResourceManagementConfig)); + sb.append(", systemRaftReplicationUnitCount=") + .append(String.valueOf(this.systemRaftReplicationUnitCount)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDatabaseSummary)) { + return false; + } + + DistributedDatabaseSummary other = (DistributedDatabaseSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.characterSet, other.characterSet) + && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) + && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) + && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) + && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) + && java.util.Objects.equals( + this.autoResourceManagementConfig, other.autoResourceManagementConfig) + && java.util.Objects.equals( + this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) + && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIds == null + ? 43 + : this.privateEndpointIds.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); + result = + (result * PRIME) + + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); + result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); + result = + (result * PRIME) + + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); + result = + (result * PRIME) + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java new file mode 100644 index 00000000000..0928a332bb2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java @@ -0,0 +1,887 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Backup Options To use any of the API operations, you must be authorized in an IAM policy. If + * you're not authorized, talk to an administrator. If you're an administrator who needs to write + * policies to give users access, see [Getting Started with + * Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbBackupConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbBackupConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isAutoBackupEnabled", + "recoveryWindowInDays", + "autoBackupWindow", + "autoFullBackupWindow", + "autoFullBackupDay", + "canRunImmediateFullBackup", + "isRemoteBackupEnabled", + "remoteRegion", + "backupDestinationDetails", + "backupDeletionPolicy" + }) + public DistributedDbBackupConfig( + Boolean isAutoBackupEnabled, + Integer recoveryWindowInDays, + AutoBackupWindow autoBackupWindow, + AutoFullBackupWindow autoFullBackupWindow, + AutoFullBackupDay autoFullBackupDay, + Boolean canRunImmediateFullBackup, + Boolean isRemoteBackupEnabled, + String remoteRegion, + java.util.List backupDestinationDetails, + BackupDeletionPolicy backupDeletionPolicy) { + super(); + this.isAutoBackupEnabled = isAutoBackupEnabled; + this.recoveryWindowInDays = recoveryWindowInDays; + this.autoBackupWindow = autoBackupWindow; + this.autoFullBackupWindow = autoFullBackupWindow; + this.autoFullBackupDay = autoFullBackupDay; + this.canRunImmediateFullBackup = canRunImmediateFullBackup; + this.isRemoteBackupEnabled = isRemoteBackupEnabled; + this.remoteRegion = remoteRegion; + this.backupDestinationDetails = backupDestinationDetails; + this.backupDeletionPolicy = backupDeletionPolicy; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If set to true, configures automatic backups. If you previously used RMAN or dbcli to + * configure backups and then you switch to using the Console or the API for backups, a new + * backup configuration is created and associated with your database. This means that you + * can no longer rely on your previously configured unmanaged backups to work. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoBackupEnabled") + private Boolean isAutoBackupEnabled; + + /** + * If set to true, configures automatic backups. If you previously used RMAN or dbcli to + * configure backups and then you switch to using the Console or the API for backups, a new + * backup configuration is created and associated with your database. This means that you + * can no longer rely on your previously configured unmanaged backups to work. + * + * @param isAutoBackupEnabled the value to set + * @return this builder + */ + public Builder isAutoBackupEnabled(Boolean isAutoBackupEnabled) { + this.isAutoBackupEnabled = isAutoBackupEnabled; + this.__explicitlySet__.add("isAutoBackupEnabled"); + return this; + } + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups only. After a new automatic + * backup has been created, Oracle removes old automatic backups that are created before the + * window. When the value is updated, it is applied to all existing automatic backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowInDays") + private Integer recoveryWindowInDays; + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups only. After a new automatic + * backup has been created, Oracle removes old automatic backups that are created before the + * window. When the value is updated, it is applied to all existing automatic backups. + * + * @param recoveryWindowInDays the value to set + * @return this builder + */ + public Builder recoveryWindowInDays(Integer recoveryWindowInDays) { + this.recoveryWindowInDays = recoveryWindowInDays; + this.__explicitlySet__.add("recoveryWindowInDays"); + return this; + } + /** + * Time window selected for initiating automatic backup for the database system. There are + * twelve available two-hour time windows. If no option is selected, a start time between + * 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, + * if the user selects SLOT_TWO from the enum list, the automatic backup job will start in + * between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoBackupWindow") + private AutoBackupWindow autoBackupWindow; + + /** + * Time window selected for initiating automatic backup for the database system. There are + * twelve available two-hour time windows. If no option is selected, a start time between + * 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For example, + * if the user selects SLOT_TWO from the enum list, the automatic backup job will start in + * between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + * + * @param autoBackupWindow the value to set + * @return this builder + */ + public Builder autoBackupWindow(AutoBackupWindow autoBackupWindow) { + this.autoBackupWindow = autoBackupWindow; + this.__explicitlySet__.add("autoBackupWindow"); + return this; + } + /** + * Time window selected for initiating full backup for the database system. There are twelve + * available two-hour time windows. If no option is selected, the value is null and a start + * time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. + * For example, if the user selects SLOT_TWO from the enum list, the automatic backup job + * will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code + * SLOT_TWO} + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoFullBackupWindow") + private AutoFullBackupWindow autoFullBackupWindow; + + /** + * Time window selected for initiating full backup for the database system. There are twelve + * available two-hour time windows. If no option is selected, the value is null and a start + * time between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. + * For example, if the user selects SLOT_TWO from the enum list, the automatic backup job + * will start in between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code + * SLOT_TWO} + * + * @param autoFullBackupWindow the value to set + * @return this builder + */ + public Builder autoFullBackupWindow(AutoFullBackupWindow autoFullBackupWindow) { + this.autoFullBackupWindow = autoFullBackupWindow; + this.__explicitlySet__.add("autoFullBackupWindow"); + return this; + } + /** + * Day of the week the full backup should be applied on the database system. If no option is + * selected, the value is null and we will default to Sunday. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoFullBackupDay") + private AutoFullBackupDay autoFullBackupDay; + + /** + * Day of the week the full backup should be applied on the database system. If no option is + * selected, the value is null and we will default to Sunday. + * + * @param autoFullBackupDay the value to set + * @return this builder + */ + public Builder autoFullBackupDay(AutoFullBackupDay autoFullBackupDay) { + this.autoFullBackupDay = autoFullBackupDay; + this.__explicitlySet__.add("autoFullBackupDay"); + return this; + } + /** + * If set to true, configures automatic full backups in the local region (the region of the + * DB system) for the first backup run immediately. + */ + @com.fasterxml.jackson.annotation.JsonProperty("canRunImmediateFullBackup") + private Boolean canRunImmediateFullBackup; + + /** + * If set to true, configures automatic full backups in the local region (the region of the + * DB system) for the first backup run immediately. + * + * @param canRunImmediateFullBackup the value to set + * @return this builder + */ + public Builder canRunImmediateFullBackup(Boolean canRunImmediateFullBackup) { + this.canRunImmediateFullBackup = canRunImmediateFullBackup; + this.__explicitlySet__.add("canRunImmediateFullBackup"); + return this; + } + /** + * If set to true, configures automatic incremental backups in the local region (the region + * of the DB system) and the remote region with a default frequency of 1 hour. If you + * previously used RMAN or dbcli to configure backups, using the Console or the API for + * manged backups creates a new backup configuration for your database. The new + * configuration replaces the configuration created with RMAN or dbcli. This means that you + * can no longer rely on your previously configured unmanaged backups to work. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemoteBackupEnabled") + private Boolean isRemoteBackupEnabled; + + /** + * If set to true, configures automatic incremental backups in the local region (the region + * of the DB system) and the remote region with a default frequency of 1 hour. If you + * previously used RMAN or dbcli to configure backups, using the Console or the API for + * manged backups creates a new backup configuration for your database. The new + * configuration replaces the configuration created with RMAN or dbcli. This means that you + * can no longer rely on your previously configured unmanaged backups to work. + * + * @param isRemoteBackupEnabled the value to set + * @return this builder + */ + public Builder isRemoteBackupEnabled(Boolean isRemoteBackupEnabled) { + this.isRemoteBackupEnabled = isRemoteBackupEnabled; + this.__explicitlySet__.add("isRemoteBackupEnabled"); + return this; + } + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @param remoteRegion the value to set + * @return this builder + */ + public Builder remoteRegion(String remoteRegion) { + this.remoteRegion = remoteRegion; + this.__explicitlySet__.add("remoteRegion"); + return this; + } + /** Backup destination details. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private java.util.List backupDestinationDetails; + + /** + * Backup destination details. + * + * @param backupDestinationDetails the value to set + * @return this builder + */ + public Builder backupDestinationDetails( + java.util.List backupDestinationDetails) { + this.backupDestinationDetails = backupDestinationDetails; + this.__explicitlySet__.add("backupDestinationDetails"); + return this; + } + /** + * This defines when the backups will be deleted. - IMMEDIATE option keep the backup for + * predefined time i.e 72 hours and then delete permanently... - RETAIN will keep the + * backups as per the policy defined for database backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDeletionPolicy") + private BackupDeletionPolicy backupDeletionPolicy; + + /** + * This defines when the backups will be deleted. - IMMEDIATE option keep the backup for + * predefined time i.e 72 hours and then delete permanently... - RETAIN will keep the + * backups as per the policy defined for database backups. + * + * @param backupDeletionPolicy the value to set + * @return this builder + */ + public Builder backupDeletionPolicy(BackupDeletionPolicy backupDeletionPolicy) { + this.backupDeletionPolicy = backupDeletionPolicy; + this.__explicitlySet__.add("backupDeletionPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbBackupConfig build() { + DistributedDbBackupConfig model = + new DistributedDbBackupConfig( + this.isAutoBackupEnabled, + this.recoveryWindowInDays, + this.autoBackupWindow, + this.autoFullBackupWindow, + this.autoFullBackupDay, + this.canRunImmediateFullBackup, + this.isRemoteBackupEnabled, + this.remoteRegion, + this.backupDestinationDetails, + this.backupDeletionPolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbBackupConfig model) { + if (model.wasPropertyExplicitlySet("isAutoBackupEnabled")) { + this.isAutoBackupEnabled(model.getIsAutoBackupEnabled()); + } + if (model.wasPropertyExplicitlySet("recoveryWindowInDays")) { + this.recoveryWindowInDays(model.getRecoveryWindowInDays()); + } + if (model.wasPropertyExplicitlySet("autoBackupWindow")) { + this.autoBackupWindow(model.getAutoBackupWindow()); + } + if (model.wasPropertyExplicitlySet("autoFullBackupWindow")) { + this.autoFullBackupWindow(model.getAutoFullBackupWindow()); + } + if (model.wasPropertyExplicitlySet("autoFullBackupDay")) { + this.autoFullBackupDay(model.getAutoFullBackupDay()); + } + if (model.wasPropertyExplicitlySet("canRunImmediateFullBackup")) { + this.canRunImmediateFullBackup(model.getCanRunImmediateFullBackup()); + } + if (model.wasPropertyExplicitlySet("isRemoteBackupEnabled")) { + this.isRemoteBackupEnabled(model.getIsRemoteBackupEnabled()); + } + if (model.wasPropertyExplicitlySet("remoteRegion")) { + this.remoteRegion(model.getRemoteRegion()); + } + if (model.wasPropertyExplicitlySet("backupDestinationDetails")) { + this.backupDestinationDetails(model.getBackupDestinationDetails()); + } + if (model.wasPropertyExplicitlySet("backupDeletionPolicy")) { + this.backupDeletionPolicy(model.getBackupDeletionPolicy()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If set to true, configures automatic backups. If you previously used RMAN or dbcli to + * configure backups and then you switch to using the Console or the API for backups, a new + * backup configuration is created and associated with your database. This means that you can no + * longer rely on your previously configured unmanaged backups to work. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoBackupEnabled") + private final Boolean isAutoBackupEnabled; + + /** + * If set to true, configures automatic backups. If you previously used RMAN or dbcli to + * configure backups and then you switch to using the Console or the API for backups, a new + * backup configuration is created and associated with your database. This means that you can no + * longer rely on your previously configured unmanaged backups to work. + * + * @return the value + */ + public Boolean getIsAutoBackupEnabled() { + return isAutoBackupEnabled; + } + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups only. After a new automatic backup + * has been created, Oracle removes old automatic backups that are created before the window. + * When the value is updated, it is applied to all existing automatic backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowInDays") + private final Integer recoveryWindowInDays; + + /** + * Number of days between the current and the earliest point of recoverability covered by + * automatic backups. This value applies to automatic backups only. After a new automatic backup + * has been created, Oracle removes old automatic backups that are created before the window. + * When the value is updated, it is applied to all existing automatic backups. + * + * @return the value + */ + public Integer getRecoveryWindowInDays() { + return recoveryWindowInDays; + } + + /** + * Time window selected for initiating automatic backup for the database system. There are + * twelve available two-hour time windows. If no option is selected, a start time between 12:00 + * AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user + * selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM + * (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + */ + public enum AutoBackupWindow implements com.oracle.bmc.http.internal.BmcEnum { + SlotOne("SLOT_ONE"), + SlotTwo("SLOT_TWO"), + SlotThree("SLOT_THREE"), + SlotFour("SLOT_FOUR"), + SlotFive("SLOT_FIVE"), + SlotSix("SLOT_SIX"), + SlotSeven("SLOT_SEVEN"), + SlotEight("SLOT_EIGHT"), + SlotNine("SLOT_NINE"), + SlotTen("SLOT_TEN"), + SlotEleven("SLOT_ELEVEN"), + SlotTwelve("SLOT_TWELVE"), + + /** + * 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(AutoBackupWindow.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoBackupWindow v : AutoBackupWindow.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoBackupWindow(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoBackupWindow create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoBackupWindow', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Time window selected for initiating automatic backup for the database system. There are + * twelve available two-hour time windows. If no option is selected, a start time between 12:00 + * AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user + * selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM + * (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoBackupWindow") + private final AutoBackupWindow autoBackupWindow; + + /** + * Time window selected for initiating automatic backup for the database system. There are + * twelve available two-hour time windows. If no option is selected, a start time between 12:00 + * AM to 7:00 AM in the region of the database is automatically chosen. For example, if the user + * selects SLOT_TWO from the enum list, the automatic backup job will start in between 2:00 AM + * (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + * + * @return the value + */ + public AutoBackupWindow getAutoBackupWindow() { + return autoBackupWindow; + } + + /** + * Time window selected for initiating full backup for the database system. There are twelve + * available two-hour time windows. If no option is selected, the value is null and a start time + * between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For + * example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start + * in between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + */ + public enum AutoFullBackupWindow implements com.oracle.bmc.http.internal.BmcEnum { + SlotOne("SLOT_ONE"), + SlotTwo("SLOT_TWO"), + SlotThree("SLOT_THREE"), + SlotFour("SLOT_FOUR"), + SlotFive("SLOT_FIVE"), + SlotSix("SLOT_SIX"), + SlotSeven("SLOT_SEVEN"), + SlotEight("SLOT_EIGHT"), + SlotNine("SLOT_NINE"), + SlotTen("SLOT_TEN"), + SlotEleven("SLOT_ELEVEN"), + SlotTwelve("SLOT_TWELVE"), + + /** + * 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(AutoFullBackupWindow.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoFullBackupWindow v : AutoFullBackupWindow.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoFullBackupWindow(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoFullBackupWindow create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoFullBackupWindow', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Time window selected for initiating full backup for the database system. There are twelve + * available two-hour time windows. If no option is selected, the value is null and a start time + * between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For + * example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start + * in between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoFullBackupWindow") + private final AutoFullBackupWindow autoFullBackupWindow; + + /** + * Time window selected for initiating full backup for the database system. There are twelve + * available two-hour time windows. If no option is selected, the value is null and a start time + * between 12:00 AM to 7:00 AM in the region of the database is automatically chosen. For + * example, if the user selects SLOT_TWO from the enum list, the automatic backup job will start + * in between 2:00 AM (inclusive) to 4:00 AM (exclusive). Example: {@code SLOT_TWO} + * + * @return the value + */ + public AutoFullBackupWindow getAutoFullBackupWindow() { + return autoFullBackupWindow; + } + + /** + * Day of the week the full backup should be applied on the database system. If no option is + * selected, the value is null and we will default to Sunday. + */ + public enum AutoFullBackupDay implements com.oracle.bmc.http.internal.BmcEnum { + Sunday("SUNDAY"), + Monday("MONDAY"), + Tuesday("TUESDAY"), + Wednesday("WEDNESDAY"), + Thursday("THURSDAY"), + Friday("FRIDAY"), + Saturday("SATURDAY"), + + /** + * 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(AutoFullBackupDay.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoFullBackupDay v : AutoFullBackupDay.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoFullBackupDay(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoFullBackupDay create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoFullBackupDay', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Day of the week the full backup should be applied on the database system. If no option is + * selected, the value is null and we will default to Sunday. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoFullBackupDay") + private final AutoFullBackupDay autoFullBackupDay; + + /** + * Day of the week the full backup should be applied on the database system. If no option is + * selected, the value is null and we will default to Sunday. + * + * @return the value + */ + public AutoFullBackupDay getAutoFullBackupDay() { + return autoFullBackupDay; + } + + /** + * If set to true, configures automatic full backups in the local region (the region of the DB + * system) for the first backup run immediately. + */ + @com.fasterxml.jackson.annotation.JsonProperty("canRunImmediateFullBackup") + private final Boolean canRunImmediateFullBackup; + + /** + * If set to true, configures automatic full backups in the local region (the region of the DB + * system) for the first backup run immediately. + * + * @return the value + */ + public Boolean getCanRunImmediateFullBackup() { + return canRunImmediateFullBackup; + } + + /** + * If set to true, configures automatic incremental backups in the local region (the region of + * the DB system) and the remote region with a default frequency of 1 hour. If you previously + * used RMAN or dbcli to configure backups, using the Console or the API for manged backups + * creates a new backup configuration for your database. The new configuration replaces the + * configuration created with RMAN or dbcli. This means that you can no longer rely on your + * previously configured unmanaged backups to work. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemoteBackupEnabled") + private final Boolean isRemoteBackupEnabled; + + /** + * If set to true, configures automatic incremental backups in the local region (the region of + * the DB system) and the remote region with a default frequency of 1 hour. If you previously + * used RMAN or dbcli to configure backups, using the Console or the API for manged backups + * creates a new backup configuration for your database. The new configuration replaces the + * configuration created with RMAN or dbcli. This means that you can no longer rely on your + * previously configured unmanaged backups to work. + * + * @return the value + */ + public Boolean getIsRemoteBackupEnabled() { + return isRemoteBackupEnabled; + } + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private final String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getRemoteRegion() { + return remoteRegion; + } + + /** Backup destination details. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private final java.util.List backupDestinationDetails; + + /** + * Backup destination details. + * + * @return the value + */ + public java.util.List getBackupDestinationDetails() { + return backupDestinationDetails; + } + + /** + * This defines when the backups will be deleted. - IMMEDIATE option keep the backup for + * predefined time i.e 72 hours and then delete permanently... - RETAIN will keep the backups as + * per the policy defined for database backups. + */ + public enum BackupDeletionPolicy implements com.oracle.bmc.http.internal.BmcEnum { + DeleteImmediately("DELETE_IMMEDIATELY"), + DeleteAfterRetentionPeriod("DELETE_AFTER_RETENTION_PERIOD"), + + /** + * 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(BackupDeletionPolicy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupDeletionPolicy v : BackupDeletionPolicy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupDeletionPolicy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupDeletionPolicy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupDeletionPolicy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * This defines when the backups will be deleted. - IMMEDIATE option keep the backup for + * predefined time i.e 72 hours and then delete permanently... - RETAIN will keep the backups as + * per the policy defined for database backups. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDeletionPolicy") + private final BackupDeletionPolicy backupDeletionPolicy; + + /** + * This defines when the backups will be deleted. - IMMEDIATE option keep the backup for + * predefined time i.e 72 hours and then delete permanently... - RETAIN will keep the backups as + * per the policy defined for database backups. + * + * @return the value + */ + public BackupDeletionPolicy getBackupDeletionPolicy() { + return backupDeletionPolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbBackupConfig("); + sb.append("super=").append(super.toString()); + sb.append("isAutoBackupEnabled=").append(String.valueOf(this.isAutoBackupEnabled)); + sb.append(", recoveryWindowInDays=").append(String.valueOf(this.recoveryWindowInDays)); + sb.append(", autoBackupWindow=").append(String.valueOf(this.autoBackupWindow)); + sb.append(", autoFullBackupWindow=").append(String.valueOf(this.autoFullBackupWindow)); + sb.append(", autoFullBackupDay=").append(String.valueOf(this.autoFullBackupDay)); + sb.append(", canRunImmediateFullBackup=") + .append(String.valueOf(this.canRunImmediateFullBackup)); + sb.append(", isRemoteBackupEnabled=").append(String.valueOf(this.isRemoteBackupEnabled)); + sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(", backupDestinationDetails=") + .append(String.valueOf(this.backupDestinationDetails)); + sb.append(", backupDeletionPolicy=").append(String.valueOf(this.backupDeletionPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbBackupConfig)) { + return false; + } + + DistributedDbBackupConfig other = (DistributedDbBackupConfig) o; + return java.util.Objects.equals(this.isAutoBackupEnabled, other.isAutoBackupEnabled) + && java.util.Objects.equals(this.recoveryWindowInDays, other.recoveryWindowInDays) + && java.util.Objects.equals(this.autoBackupWindow, other.autoBackupWindow) + && java.util.Objects.equals(this.autoFullBackupWindow, other.autoFullBackupWindow) + && java.util.Objects.equals(this.autoFullBackupDay, other.autoFullBackupDay) + && java.util.Objects.equals( + this.canRunImmediateFullBackup, other.canRunImmediateFullBackup) + && java.util.Objects.equals(this.isRemoteBackupEnabled, other.isRemoteBackupEnabled) + && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && java.util.Objects.equals( + this.backupDestinationDetails, other.backupDestinationDetails) + && java.util.Objects.equals(this.backupDeletionPolicy, other.backupDeletionPolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isAutoBackupEnabled == null + ? 43 + : this.isAutoBackupEnabled.hashCode()); + result = + (result * PRIME) + + (this.recoveryWindowInDays == null + ? 43 + : this.recoveryWindowInDays.hashCode()); + result = + (result * PRIME) + + (this.autoBackupWindow == null ? 43 : this.autoBackupWindow.hashCode()); + result = + (result * PRIME) + + (this.autoFullBackupWindow == null + ? 43 + : this.autoFullBackupWindow.hashCode()); + result = + (result * PRIME) + + (this.autoFullBackupDay == null ? 43 : this.autoFullBackupDay.hashCode()); + result = + (result * PRIME) + + (this.canRunImmediateFullBackup == null + ? 43 + : this.canRunImmediateFullBackup.hashCode()); + result = + (result * PRIME) + + (this.isRemoteBackupEnabled == null + ? 43 + : this.isRemoteBackupEnabled.hashCode()); + result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = + (result * PRIME) + + (this.backupDestinationDetails == null + ? 43 + : this.backupDestinationDetails.hashCode()); + result = + (result * PRIME) + + (this.backupDeletionPolicy == null + ? 43 + : this.backupDeletionPolicy.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java new file mode 100644 index 00000000000..5b1e74014a8 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java @@ -0,0 +1,405 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Backup destination details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbBackupDestination.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbBackupDestination + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "id", + "internetProxy", + "dbrsPolicyId", + "isRemote", + "remoteRegion" + }) + public DistributedDbBackupDestination( + Type type, + String id, + String internetProxy, + String dbrsPolicyId, + Boolean isRemote, + String remoteRegion) { + super(); + this.type = type; + this.id = id; + this.internetProxy = internetProxy; + this.dbrsPolicyId = dbrsPolicyId; + this.isRemote = isRemote; + this.remoteRegion = remoteRegion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the database backup destination. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the database backup destination. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Proxy URL to connect to object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") + private String internetProxy; + + /** + * Proxy URL to connect to object store. + * + * @param internetProxy the value to set + * @return this builder + */ + public Builder internetProxy(String internetProxy) { + this.internetProxy = internetProxy; + this.__explicitlySet__.add("internetProxy"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DBRS policy used for backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") + private String dbrsPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DBRS policy used for backup. + * + * @param dbrsPolicyId the value to set + * @return this builder + */ + public Builder dbrsPolicyId(String dbrsPolicyId) { + this.dbrsPolicyId = dbrsPolicyId; + this.__explicitlySet__.add("dbrsPolicyId"); + return this; + } + /** Indicates whether the backup destination is cross-region or local region. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemote") + private Boolean isRemote; + + /** + * Indicates whether the backup destination is cross-region or local region. + * + * @param isRemote the value to set + * @return this builder + */ + public Builder isRemote(Boolean isRemote) { + this.isRemote = isRemote; + this.__explicitlySet__.add("isRemote"); + return this; + } + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be + * stored. For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @param remoteRegion the value to set + * @return this builder + */ + public Builder remoteRegion(String remoteRegion) { + this.remoteRegion = remoteRegion; + this.__explicitlySet__.add("remoteRegion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbBackupDestination build() { + DistributedDbBackupDestination model = + new DistributedDbBackupDestination( + this.type, + this.id, + this.internetProxy, + this.dbrsPolicyId, + this.isRemote, + this.remoteRegion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbBackupDestination model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("internetProxy")) { + this.internetProxy(model.getInternetProxy()); + } + if (model.wasPropertyExplicitlySet("dbrsPolicyId")) { + this.dbrsPolicyId(model.getDbrsPolicyId()); + } + if (model.wasPropertyExplicitlySet("isRemote")) { + this.isRemote(model.getIsRemote()); + } + if (model.wasPropertyExplicitlySet("remoteRegion")) { + this.remoteRegion(model.getRemoteRegion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the database backup destination. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Nfs("NFS"), + ObjectStore("OBJECT_STORE"), + Local("LOCAL"), + Dbrs("DBRS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Type of the database backup destination. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the database backup destination. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup destination. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Proxy URL to connect to object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") + private final String internetProxy; + + /** + * Proxy URL to connect to object store. + * + * @return the value + */ + public String getInternetProxy() { + return internetProxy; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS + * policy used for backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") + private final String dbrsPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS + * policy used for backup. + * + * @return the value + */ + public String getDbrsPolicyId() { + return dbrsPolicyId; + } + + /** Indicates whether the backup destination is cross-region or local region. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRemote") + private final Boolean isRemote; + + /** + * Indicates whether the backup destination is cross-region or local region. + * + * @return the value + */ + public Boolean getIsRemote() { + return isRemote; + } + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") + private final String remoteRegion; + + /** + * The name of the remote region where the remote automatic incremental backups will be stored. + * For information about valid region names, see [Regions and Availability + * Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getRemoteRegion() { + return remoteRegion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbBackupDestination("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); + sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); + sb.append(", isRemote=").append(String.valueOf(this.isRemote)); + sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbBackupDestination)) { + return false; + } + + DistributedDbBackupDestination other = (DistributedDbBackupDestination) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.internetProxy, other.internetProxy) + && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) + && java.util.Objects.equals(this.isRemote, other.isRemote) + && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); + result = (result * PRIME) + (this.dbrsPolicyId == null ? 43 : this.dbrsPolicyId.hashCode()); + result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); + result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java new file mode 100644 index 00000000000..f640d9cb96f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.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.distributeddatabasev26.model; + +/** + * Details of Globally distributed database connection String.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbConnectionString.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbConnectionString + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"allConnectionStrings"}) + public DistributedDbConnectionString(java.util.Map allConnectionStrings) { + super(); + this.allConnectionStrings = allConnectionStrings; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of connection strings. */ + @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") + private java.util.Map allConnectionStrings; + + /** + * Collection of connection strings. + * + * @param allConnectionStrings the value to set + * @return this builder + */ + public Builder allConnectionStrings(java.util.Map allConnectionStrings) { + this.allConnectionStrings = allConnectionStrings; + this.__explicitlySet__.add("allConnectionStrings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbConnectionString build() { + DistributedDbConnectionString model = + new DistributedDbConnectionString(this.allConnectionStrings); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbConnectionString model) { + if (model.wasPropertyExplicitlySet("allConnectionStrings")) { + this.allConnectionStrings(model.getAllConnectionStrings()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Collection of connection strings. */ + @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") + private final java.util.Map allConnectionStrings; + + /** + * Collection of connection strings. + * + * @return the value + */ + public java.util.Map getAllConnectionStrings() { + return allConnectionStrings; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbConnectionString("); + sb.append("super=").append(super.toString()); + sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbConnectionString)) { + return false; + } + + DistributedDbConnectionString other = (DistributedDbConnectionString) o; + return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.allConnectionStrings == null + ? 43 + : this.allConnectionStrings.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java new file mode 100644 index 00000000000..9853c1b467b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java @@ -0,0 +1,178 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The Global Database Services Control(GDS CTL) image details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbGdsControlNodeImage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbGdsControlNodeImage + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedDbGdsControlNodeImage(String id, String version) { + super(); + this.id = id; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version associated with the image identified by id. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbGdsControlNodeImage build() { + DistributedDbGdsControlNodeImage model = + new DistributedDbGdsControlNodeImage(this.id, this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbGdsControlNodeImage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global Database Services Control(GDS CTL) software image. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version associated with the image identified by id. + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbGdsControlNodeImage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbGdsControlNodeImage)) { + return false; + } + + DistributedDbGdsControlNodeImage other = (DistributedDbGdsControlNodeImage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java new file mode 100644 index 00000000000..66371ee8b3d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * The Global service manager image details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbGsmImage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbGsmImage + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedDbGsmImage(String id, String version) { + super(); + this.id = id; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version associated with the image identified by id. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbGsmImage build() { + DistributedDbGsmImage model = new DistributedDbGsmImage(this.id, this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbGsmImage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Global service manager software image. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version associated with the image identified by id. + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbGsmImage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbGsmImage)) { + return false; + } + + DistributedDbGsmImage other = (DistributedDbGsmImage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java new file mode 100644 index 00000000000..4b0d3dd04fd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.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.distributeddatabasev26.model; + +/** + * Additional metadata related to Globally distributed database resources.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbMetadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbMetadata + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"map"}) + public DistributedDbMetadata(java.util.Map map) { + super(); + this.map = map; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The map containing key-value pair of additional metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("map") + private java.util.Map map; + + /** + * The map containing key-value pair of additional metadata. + * + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + this.__explicitlySet__.add("map"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbMetadata build() { + DistributedDbMetadata model = new DistributedDbMetadata(this.map); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbMetadata model) { + if (model.wasPropertyExplicitlySet("map")) { + this.map(model.getMap()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The map containing key-value pair of additional metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("map") + private final java.util.Map map; + + /** + * The map containing key-value pair of additional metadata. + * + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbMetadata("); + sb.append("super=").append(super.toString()); + sb.append("map=").append(String.valueOf(this.map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbMetadata)) { + return false; + } + + DistributedDbMetadata other = (DistributedDbMetadata) o; + return java.util.Objects.equals(this.map, other.map) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.map == null ? 43 : this.map.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java new file mode 100644 index 00000000000..f3e04466e2d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.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.distributeddatabasev26.model; + +/** The protection mode to set up between the primary and standby databases. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum DistributedDbProtectionMode implements com.oracle.bmc.http.internal.BmcEnum { + MaximumAvailability("MAXIMUM_AVAILABILITY"), + MaximumPerformance("MAXIMUM_PERFORMANCE"), + MaximumProtection("MAXIMUM_PROTECTION"), + + /** + * 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(DistributedDbProtectionMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributedDbProtectionMode v : DistributedDbProtectionMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributedDbProtectionMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributedDbProtectionMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributedDbProtectionMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java new file mode 100644 index 00000000000..e5c87497ebd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java @@ -0,0 +1,479 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The Storage Vault for Distributed Database Resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbStorageVault.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbStorageVault + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "dbStorageVaultId", + "highCapacityDatabaseStorage", + "additionalFlashCacheInPercent", + "subscriptionId", + "isAutoscaleEnabled", + "autoscaleLimitInGBs" + }) + public DistributedDbStorageVault( + String compartmentId, + String displayName, + String dbStorageVaultId, + Integer highCapacityDatabaseStorage, + Integer additionalFlashCacheInPercent, + String subscriptionId, + Boolean isAutoscaleEnabled, + Integer autoscaleLimitInGBs) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.dbStorageVaultId = dbStorageVaultId; + this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; + this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; + this.subscriptionId = subscriptionId; + this.isAutoscaleEnabled = isAutoscaleEnabled; + this.autoscaleLimitInGBs = autoscaleLimitInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Exadata Database Storage Vault. The name does not need to + * be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Exadata Database Storage Vault. The name does not need to + * be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Exadata Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultId") + private String dbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Exadata Database Storage Vault. + * + * @param dbStorageVaultId the value to set + * @return this builder + */ + public Builder dbStorageVaultId(String dbStorageVaultId) { + this.dbStorageVaultId = dbStorageVaultId; + this.__explicitlySet__.add("dbStorageVaultId"); + return this; + } + /** Total storage capacity in GB for vault storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") + private Integer highCapacityDatabaseStorage; + + /** + * Total storage capacity in GB for vault storage. + * + * @param highCapacityDatabaseStorage the value to set + * @return this builder + */ + public Builder highCapacityDatabaseStorage(Integer highCapacityDatabaseStorage) { + this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; + this.__explicitlySet__.add("highCapacityDatabaseStorage"); + return this; + } + /** The size of additional Flash Cache in percentage of High Capacity database storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") + private Integer additionalFlashCacheInPercent; + + /** + * The size of additional Flash Cache in percentage of High Capacity database storage. + * + * @param additionalFlashCacheInPercent the value to set + * @return this builder + */ + public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPercent) { + this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; + this.__explicitlySet__.add("additionalFlashCacheInPercent"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default + * value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") + private Boolean isAutoscaleEnabled; + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default + * value is {@code FALSE}. + * + * @param isAutoscaleEnabled the value to set + * @return this builder + */ + public Builder isAutoscaleEnabled(Boolean isAutoscaleEnabled) { + this.isAutoscaleEnabled = isAutoscaleEnabled; + this.__explicitlySet__.add("isAutoscaleEnabled"); + return this; + } + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale + * when auto scaling is enabled for the Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") + private Integer autoscaleLimitInGBs; + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale + * when auto scaling is enabled for the Database Storage Vault. + * + * @param autoscaleLimitInGBs the value to set + * @return this builder + */ + public Builder autoscaleLimitInGBs(Integer autoscaleLimitInGBs) { + this.autoscaleLimitInGBs = autoscaleLimitInGBs; + this.__explicitlySet__.add("autoscaleLimitInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbStorageVault build() { + DistributedDbStorageVault model = + new DistributedDbStorageVault( + this.compartmentId, + this.displayName, + this.dbStorageVaultId, + this.highCapacityDatabaseStorage, + this.additionalFlashCacheInPercent, + this.subscriptionId, + this.isAutoscaleEnabled, + this.autoscaleLimitInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbStorageVault model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("dbStorageVaultId")) { + this.dbStorageVaultId(model.getDbStorageVaultId()); + } + if (model.wasPropertyExplicitlySet("highCapacityDatabaseStorage")) { + this.highCapacityDatabaseStorage(model.getHighCapacityDatabaseStorage()); + } + if (model.wasPropertyExplicitlySet("additionalFlashCacheInPercent")) { + this.additionalFlashCacheInPercent(model.getAdditionalFlashCacheInPercent()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("isAutoscaleEnabled")) { + this.isAutoscaleEnabled(model.getIsAutoscaleEnabled()); + } + if (model.wasPropertyExplicitlySet("autoscaleLimitInGBs")) { + this.autoscaleLimitInGBs(model.getAutoscaleLimitInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for Db Storage Vault. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be + * unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Exadata Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultId") + private final String dbStorageVaultId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Exadata Database Storage Vault. + * + * @return the value + */ + public String getDbStorageVaultId() { + return dbStorageVaultId; + } + + /** Total storage capacity in GB for vault storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") + private final Integer highCapacityDatabaseStorage; + + /** + * Total storage capacity in GB for vault storage. + * + * @return the value + */ + public Integer getHighCapacityDatabaseStorage() { + return highCapacityDatabaseStorage; + } + + /** The size of additional Flash Cache in percentage of High Capacity database storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") + private final Integer additionalFlashCacheInPercent; + + /** + * The size of additional Flash Cache in percentage of High Capacity database storage. + * + * @return the value + */ + public Integer getAdditionalFlashCacheInPercent() { + return additionalFlashCacheInPercent; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value + * is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") + private final Boolean isAutoscaleEnabled; + + /** + * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value + * is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsAutoscaleEnabled() { + return isAutoscaleEnabled; + } + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when + * auto scaling is enabled for the Database Storage Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") + private final Integer autoscaleLimitInGBs; + + /** + * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when + * auto scaling is enabled for the Database Storage Vault. + * + * @return the value + */ + public Integer getAutoscaleLimitInGBs() { + return autoscaleLimitInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbStorageVault("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", dbStorageVaultId=").append(String.valueOf(this.dbStorageVaultId)); + sb.append(", highCapacityDatabaseStorage=") + .append(String.valueOf(this.highCapacityDatabaseStorage)); + sb.append(", additionalFlashCacheInPercent=") + .append(String.valueOf(this.additionalFlashCacheInPercent)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", isAutoscaleEnabled=").append(String.valueOf(this.isAutoscaleEnabled)); + sb.append(", autoscaleLimitInGBs=").append(String.valueOf(this.autoscaleLimitInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbStorageVault)) { + return false; + } + + DistributedDbStorageVault other = (DistributedDbStorageVault) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dbStorageVaultId, other.dbStorageVaultId) + && java.util.Objects.equals( + this.highCapacityDatabaseStorage, other.highCapacityDatabaseStorage) + && java.util.Objects.equals( + this.additionalFlashCacheInPercent, other.additionalFlashCacheInPercent) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.isAutoscaleEnabled, other.isAutoscaleEnabled) + && java.util.Objects.equals(this.autoscaleLimitInGBs, other.autoscaleLimitInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.dbStorageVaultId == null ? 43 : this.dbStorageVaultId.hashCode()); + result = + (result * PRIME) + + (this.highCapacityDatabaseStorage == null + ? 43 + : this.highCapacityDatabaseStorage.hashCode()); + result = + (result * PRIME) + + (this.additionalFlashCacheInPercent == null + ? 43 + : this.additionalFlashCacheInPercent.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.isAutoscaleEnabled == null + ? 43 + : this.isAutoscaleEnabled.hashCode()); + result = + (result * PRIME) + + (this.autoscaleLimitInGBs == null + ? 43 + : this.autoscaleLimitInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java new file mode 100644 index 00000000000..047a50abad0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.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.distributeddatabasev26.model; + +/** The transport type to use for this Data Guard association. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum DistributedDbTransportType implements com.oracle.bmc.http.internal.BmcEnum { + Sync("SYNC"), + Async("ASYNC"), + Fastsync("FASTSYNC"), + + /** + * 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(DistributedDbTransportType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DistributedDbTransportType v : DistributedDbTransportType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DistributedDbTransportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DistributedDbTransportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DistributedDbTransportType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java new file mode 100644 index 00000000000..e15f25f6340 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java @@ -0,0 +1,1070 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The Exadata VM cluster for Distributed Database Resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDbVmCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DistributedDbVmCluster + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "vmClusterId", + "displayName", + "subnetId", + "backupSubnetId", + "enabledECpuCount", + "totalECpuCount", + "vmFileSystemStorageSize", + "sshPublicKeys", + "licenseModel", + "domain", + "privateZoneId", + "nsgIds", + "backupNetworkNsgIds", + "isDiagnosticsEventsEnabled", + "isHealthMonitoringEnabled", + "isIncidentLogsEnabled", + "subscriptionId" + }) + public DistributedDbVmCluster( + String compartmentId, + String vmClusterId, + String displayName, + String subnetId, + String backupSubnetId, + Integer enabledECpuCount, + Integer totalECpuCount, + Integer vmFileSystemStorageSize, + java.util.List sshPublicKeys, + LicenseModel licenseModel, + String domain, + String privateZoneId, + java.util.List nsgIds, + java.util.List backupNetworkNsgIds, + Boolean isDiagnosticsEventsEnabled, + Boolean isHealthMonitoringEnabled, + Boolean isIncidentLogsEnabled, + String subscriptionId) { + super(); + this.compartmentId = compartmentId; + this.vmClusterId = vmClusterId; + this.displayName = displayName; + this.subnetId = subnetId; + this.backupSubnetId = backupSubnetId; + this.enabledECpuCount = enabledECpuCount; + this.totalECpuCount = totalECpuCount; + this.vmFileSystemStorageSize = vmFileSystemStorageSize; + this.sshPublicKeys = sshPublicKeys; + this.licenseModel = licenseModel; + this.domain = domain; + this.privateZoneId = privateZoneId; + this.nsgIds = nsgIds; + this.backupNetworkNsgIds = backupNetworkNsgIds; + this.isDiagnosticsEventsEnabled = isDiagnosticsEventsEnabled; + this.isHealthMonitoringEnabled = isHealthMonitoringEnabled; + this.isIncidentLogsEnabled = isIncidentLogsEnabled; + this.subscriptionId = subscriptionId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster. + * + * @param vmClusterId the value to set + * @return this builder + */ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + /** + * The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name + * does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name + * does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSubnetId") + private String backupSubnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @param backupSubnetId the value to set + * @return this builder + */ + public Builder backupSubnetId(String backupSubnetId) { + this.backupSubnetId = backupSubnetId; + this.__explicitlySet__.add("backupSubnetId"); + return this; + } + /** The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("enabledECpuCount") + private Integer enabledECpuCount; + + /** + * The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + * + * @param enabledECpuCount the value to set + * @return this builder + */ + public Builder enabledECpuCount(Integer enabledECpuCount) { + this.enabledECpuCount = enabledECpuCount; + this.__explicitlySet__.add("enabledECpuCount"); + return this; + } + /** The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalECpuCount") + private Integer totalECpuCount; + + /** + * The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + * + * @param totalECpuCount the value to set + * @return this builder + */ + public Builder totalECpuCount(Integer totalECpuCount) { + this.totalECpuCount = totalECpuCount; + this.__explicitlySet__.add("totalECpuCount"); + return this; + } + /** File System Storage Size in GBs for Exadata VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmFileSystemStorageSize") + private Integer vmFileSystemStorageSize; + + /** + * File System Storage Size in GBs for Exadata VM cluster. + * + * @param vmFileSystemStorageSize the value to set + * @return this builder + */ + public Builder vmFileSystemStorageSize(Integer vmFileSystemStorageSize) { + this.vmFileSystemStorageSize = vmFileSystemStorageSize; + this.__explicitlySet__.add("vmFileSystemStorageSize"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM + * cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM + * cluster on Exascale Infrastructure. + * + * @param sshPublicKeys the value to set + * @return this builder + */ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale + * Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale + * Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on + * Exascale Infrastructure only. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private String domain; + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on + * Exascale Infrastructure only. + * + * @param domain the value to set + * @return this builder + */ + public Builder domain(String domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + /** The private zone ID in which you want DNS records to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateZoneId") + private String privateZoneId; + + /** + * The private zone ID in which you want DNS records to be created. + * + * @param privateZoneId the value to set + * @return this builder + */ + public Builder privateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + this.__explicitlySet__.add("privateZoneId"); + return this; + } + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * network security groups (NSGs) to which this resource belongs. Setting this to an empty + * list removes all resources from all NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * network security groups (NSGs) to which this resource belongs. Setting this to an empty + * list removes all resources from all NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @param nsgIds the value to set + * @return this builder + */ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** + * A list of the + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all + * NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * Applicable only to Exadata systems. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds") + private java.util.List backupNetworkNsgIds; + + /** + * A list of the + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all + * NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * Applicable only to Exadata systems. + * + * @param backupNetworkNsgIds the value to set + * @return this builder + */ + public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { + this.backupNetworkNsgIds = backupNetworkNsgIds; + this.__explicitlySet__.add("backupNetworkNsgIds"); + return this; + } + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling + * diagnostic collection allows you to receive Events service notifications for guest VM + * issues. Diagnostic collection also allows Oracle to provide enhanced service and + * proactive support for your Exadata system. You can enable diagnostic collection during VM + * cluster provisioning. You can also disable or enable it at any time using the {@code + * UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDiagnosticsEventsEnabled") + private Boolean isDiagnosticsEventsEnabled; + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling + * diagnostic collection allows you to receive Events service notifications for guest VM + * issues. Diagnostic collection also allows Oracle to provide enhanced service and + * proactive support for your Exadata system. You can enable diagnostic collection during VM + * cluster provisioning. You can also disable or enable it at any time using the {@code + * UpdateVmCluster} API. + * + * @param isDiagnosticsEventsEnabled the value to set + * @return this builder + */ + public Builder isDiagnosticsEventsEnabled(Boolean isDiagnosticsEventsEnabled) { + this.isDiagnosticsEventsEnabled = isDiagnosticsEventsEnabled; + this.__explicitlySet__.add("isDiagnosticsEventsEnabled"); + return this; + } + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health + * monitoring allows Oracle to collect diagnostic data and share it with its operations and + * support personnel. You may also receive notifications for some events. Collecting health + * diagnostics enables Oracle to provide proactive support and enhanced service for your + * system. Optionally enable health monitoring while provisioning a system. You can also + * disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isHealthMonitoringEnabled") + private Boolean isHealthMonitoringEnabled; + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health + * monitoring allows Oracle to collect diagnostic data and share it with its operations and + * support personnel. You may also receive notifications for some events. Collecting health + * diagnostics enables Oracle to provide proactive support and enhanced service for your + * system. Optionally enable health monitoring while provisioning a system. You can also + * disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. + * + * @param isHealthMonitoringEnabled the value to set + * @return this builder + */ + public Builder isHealthMonitoringEnabled(Boolean isHealthMonitoringEnabled) { + this.isHealthMonitoringEnabled = isHealthMonitoringEnabled; + this.__explicitlySet__.add("isHealthMonitoringEnabled"); + return this; + } + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. + * Enabling incident logs collection allows Oracle to receive Events service notifications + * for guest VM issues, collect incident logs and traces, and use them to diagnose issues + * and resolve them. Optionally enable incident logs collection while provisioning a system. + * You can also disable or enable incident logs collection anytime using the {@code + * UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIncidentLogsEnabled") + private Boolean isIncidentLogsEnabled; + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. + * Enabling incident logs collection allows Oracle to receive Events service notifications + * for guest VM issues, collect incident logs and traces, and use them to diagnose issues + * and resolve them. Optionally enable incident logs collection while provisioning a system. + * You can also disable or enable incident logs collection anytime using the {@code + * UpdateVmCluster} API. + * + * @param isIncidentLogsEnabled the value to set + * @return this builder + */ + public Builder isIncidentLogsEnabled(Boolean isIncidentLogsEnabled) { + this.isIncidentLogsEnabled = isIncidentLogsEnabled; + this.__explicitlySet__.add("isIncidentLogsEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DistributedDbVmCluster build() { + DistributedDbVmCluster model = + new DistributedDbVmCluster( + this.compartmentId, + this.vmClusterId, + this.displayName, + this.subnetId, + this.backupSubnetId, + this.enabledECpuCount, + this.totalECpuCount, + this.vmFileSystemStorageSize, + this.sshPublicKeys, + this.licenseModel, + this.domain, + this.privateZoneId, + this.nsgIds, + this.backupNetworkNsgIds, + this.isDiagnosticsEventsEnabled, + this.isHealthMonitoringEnabled, + this.isIncidentLogsEnabled, + this.subscriptionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DistributedDbVmCluster model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("backupSubnetId")) { + this.backupSubnetId(model.getBackupSubnetId()); + } + if (model.wasPropertyExplicitlySet("enabledECpuCount")) { + this.enabledECpuCount(model.getEnabledECpuCount()); + } + if (model.wasPropertyExplicitlySet("totalECpuCount")) { + this.totalECpuCount(model.getTotalECpuCount()); + } + if (model.wasPropertyExplicitlySet("vmFileSystemStorageSize")) { + this.vmFileSystemStorageSize(model.getVmFileSystemStorageSize()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("privateZoneId")) { + this.privateZoneId(model.getPrivateZoneId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { + this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); + } + if (model.wasPropertyExplicitlySet("isDiagnosticsEventsEnabled")) { + this.isDiagnosticsEventsEnabled(model.getIsDiagnosticsEventsEnabled()); + } + if (model.wasPropertyExplicitlySet("isHealthMonitoringEnabled")) { + this.isHealthMonitoringEnabled(model.getIsHealthMonitoringEnabled()); + } + if (model.wasPropertyExplicitlySet("isIncidentLogsEnabled")) { + this.isIncidentLogsEnabled(model.getIsIncidentLogsEnabled()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster. + * + * @return the value + */ + public String getVmClusterId() { + return vmClusterId; + } + + /** + * The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does + * not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does + * not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSubnetId") + private final String backupSubnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public String getBackupSubnetId() { + return backupSubnetId; + } + + /** The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("enabledECpuCount") + private final Integer enabledECpuCount; + + /** + * The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public Integer getEnabledECpuCount() { + return enabledECpuCount; + } + + /** The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalECpuCount") + private final Integer totalECpuCount; + + /** + * The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public Integer getTotalECpuCount() { + return totalECpuCount; + } + + /** File System Storage Size in GBs for Exadata VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmFileSystemStorageSize") + private final Integer vmFileSystemStorageSize; + + /** + * File System Storage Size in GBs for Exadata VM cluster. + * + * @return the value + */ + public Integer getVmFileSystemStorageSize() { + return vmFileSystemStorageSize; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster + * on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster + * on Exascale Infrastructure. + * + * @return the value + */ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LicenseModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale + * Infrastructure only. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final String domain; + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale + * Infrastructure only. + * + * @return the value + */ + public String getDomain() { + return domain; + } + + /** The private zone ID in which you want DNS records to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateZoneId") + private final String privateZoneId; + + /** + * The private zone ID in which you want DNS records to be created. + * + * @return the value + */ + public String getPrivateZoneId() { + return privateZoneId; + } + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the network security groups (NSGs) to which this resource belongs. Setting this to an + * empty list removes all resources from all NSGs. For more information about NSGs, see + * [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the network security groups (NSGs) to which this resource belongs. Setting this to an + * empty list removes all resources from all NSGs. For more information about NSGs, see + * [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + + /** + * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all NSGs. + * For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable + * only to Exadata systems. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds") + private final java.util.List backupNetworkNsgIds; + + /** + * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all NSGs. + * For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable + * only to Exadata systems. + * + * @return the value + */ + public java.util.List getBackupNetworkNsgIds() { + return backupNetworkNsgIds; + } + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling diagnostic + * collection allows you to receive Events service notifications for guest VM issues. Diagnostic + * collection also allows Oracle to provide enhanced service and proactive support for your + * Exadata system. You can enable diagnostic collection during VM cluster provisioning. You can + * also disable or enable it at any time using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDiagnosticsEventsEnabled") + private final Boolean isDiagnosticsEventsEnabled; + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling diagnostic + * collection allows you to receive Events service notifications for guest VM issues. Diagnostic + * collection also allows Oracle to provide enhanced service and proactive support for your + * Exadata system. You can enable diagnostic collection during VM cluster provisioning. You can + * also disable or enable it at any time using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled; + } + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health monitoring + * allows Oracle to collect diagnostic data and share it with its operations and support + * personnel. You may also receive notifications for some events. Collecting health diagnostics + * enables Oracle to provide proactive support and enhanced service for your system. Optionally + * enable health monitoring while provisioning a system. You can also disable or enable health + * monitoring anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isHealthMonitoringEnabled") + private final Boolean isHealthMonitoringEnabled; + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health monitoring + * allows Oracle to collect diagnostic data and share it with its operations and support + * personnel. You may also receive notifications for some events. Collecting health diagnostics + * enables Oracle to provide proactive support and enhanced service for your system. Optionally + * enable health monitoring while provisioning a system. You can also disable or enable health + * monitoring anytime using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsHealthMonitoringEnabled() { + return isHealthMonitoringEnabled; + } + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. Enabling + * incident logs collection allows Oracle to receive Events service notifications for guest VM + * issues, collect incident logs and traces, and use them to diagnose issues and resolve them. + * Optionally enable incident logs collection while provisioning a system. You can also disable + * or enable incident logs collection anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIncidentLogsEnabled") + private final Boolean isIncidentLogsEnabled; + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. Enabling + * incident logs collection allows Oracle to receive Events service notifications for guest VM + * issues, collect incident logs and traces, and use them to diagnose issues and resolve them. + * Optionally enable incident logs collection while provisioning a system. You can also disable + * or enable incident logs collection anytime using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DistributedDbVmCluster("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", backupSubnetId=").append(String.valueOf(this.backupSubnetId)); + sb.append(", enabledECpuCount=").append(String.valueOf(this.enabledECpuCount)); + sb.append(", totalECpuCount=").append(String.valueOf(this.totalECpuCount)); + sb.append(", vmFileSystemStorageSize=") + .append(String.valueOf(this.vmFileSystemStorageSize)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", domain=").append(String.valueOf(this.domain)); + sb.append(", privateZoneId=").append(String.valueOf(this.privateZoneId)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); + sb.append(", isDiagnosticsEventsEnabled=") + .append(String.valueOf(this.isDiagnosticsEventsEnabled)); + sb.append(", isHealthMonitoringEnabled=") + .append(String.valueOf(this.isHealthMonitoringEnabled)); + sb.append(", isIncidentLogsEnabled=").append(String.valueOf(this.isIncidentLogsEnabled)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DistributedDbVmCluster)) { + return false; + } + + DistributedDbVmCluster other = (DistributedDbVmCluster) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.backupSubnetId, other.backupSubnetId) + && java.util.Objects.equals(this.enabledECpuCount, other.enabledECpuCount) + && java.util.Objects.equals(this.totalECpuCount, other.totalECpuCount) + && java.util.Objects.equals( + this.vmFileSystemStorageSize, other.vmFileSystemStorageSize) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.privateZoneId, other.privateZoneId) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) + && java.util.Objects.equals( + this.isDiagnosticsEventsEnabled, other.isDiagnosticsEventsEnabled) + && java.util.Objects.equals( + this.isHealthMonitoringEnabled, other.isHealthMonitoringEnabled) + && java.util.Objects.equals(this.isIncidentLogsEnabled, other.isIncidentLogsEnabled) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.backupSubnetId == null ? 43 : this.backupSubnetId.hashCode()); + result = + (result * PRIME) + + (this.enabledECpuCount == null ? 43 : this.enabledECpuCount.hashCode()); + result = + (result * PRIME) + + (this.totalECpuCount == null ? 43 : this.totalECpuCount.hashCode()); + result = + (result * PRIME) + + (this.vmFileSystemStorageSize == null + ? 43 + : this.vmFileSystemStorageSize.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = + (result * PRIME) + + (this.privateZoneId == null ? 43 : this.privateZoneId.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkNsgIds == null + ? 43 + : this.backupNetworkNsgIds.hashCode()); + result = + (result * PRIME) + + (this.isDiagnosticsEventsEnabled == null + ? 43 + : this.isDiagnosticsEventsEnabled.hashCode()); + result = + (result * PRIME) + + (this.isHealthMonitoringEnabled == null + ? 43 + : this.isHealthMonitoringEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIncidentLogsEnabled == null + ? 43 + : this.isIncidentLogsEnabled.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java new file mode 100644 index 00000000000..717d49f7565 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java @@ -0,0 +1,175 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details to create and download an Globally distributed autonomous database wallet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateDistributedAutonomousDatabaseWalletDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateDistributedAutonomousDatabaseWalletDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public GenerateDistributedAutonomousDatabaseWalletDetails(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"password"}) + public GenerateDistributedAutonomousDatabaseWalletDetails(char[] password) { + super(); + this.password = password; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @param password the value to set + * @return this builder + */ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateDistributedAutonomousDatabaseWalletDetails build() { + GenerateDistributedAutonomousDatabaseWalletDetails model = + new GenerateDistributedAutonomousDatabaseWalletDetails(this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateDistributedAutonomousDatabaseWalletDetails model) { + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateDistributedAutonomousDatabaseWalletDetails("); + sb.append("super=").append(super.toString()); + sb.append("password=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletDetails)) { + return false; + } + + GenerateDistributedAutonomousDatabaseWalletDetails other = + (GenerateDistributedAutonomousDatabaseWalletDetails) o; + return java.util.Objects.equals(this.password, other.password) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java new file mode 100644 index 00000000000..4a01dea6a58 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java @@ -0,0 +1,175 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details to create and download an Globally distributed database wallet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateDistributedDatabaseWalletDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateDistributedDatabaseWalletDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public GenerateDistributedDatabaseWalletDetails(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"password"}) + public GenerateDistributedDatabaseWalletDetails(char[] password) { + super(); + this.password = password; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private char[] password; + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @param password the value to set + * @return this builder + */ + public Builder password(char[] password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateDistributedDatabaseWalletDetails build() { + GenerateDistributedDatabaseWalletDetails model = + new GenerateDistributedDatabaseWalletDetails(this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateDistributedDatabaseWalletDetails model) { + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final char[] password; + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password to encrypt the keys inside the wallet. The password must be at least 8 + * characters long and must include at least 1 letter and either 1 numeric character or 1 + * special character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateDistributedDatabaseWalletDetails("); + sb.append("super=").append(super.toString()); + sb.append("password=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedDatabaseWalletDetails)) { + return false; + } + + GenerateDistributedDatabaseWalletDetails other = + (GenerateDistributedDatabaseWalletDetails) o; + return java.util.Objects.equals(this.password, other.password) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java new file mode 100644 index 00000000000..a45bee400fc --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.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.distributeddatabasev26.model; + +/** + * The details for moving replication units from source shard to destination shard for the Globally + * distributed autonomous database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MoveDistributedAutonomousDatabaseReplicationUnitDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MoveDistributedAutonomousDatabaseReplicationUnitDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceShardName", + "destinationShardName", + "replicationUnits" + }) + public MoveDistributedAutonomousDatabaseReplicationUnitDetails( + String sourceShardName, + String destinationShardName, + java.util.List replicationUnits) { + super(); + this.sourceShardName = sourceShardName; + this.destinationShardName = destinationShardName; + this.replicationUnits = replicationUnits; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the source shard from which to move the chunks out to other shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private String sourceShardName; + + /** + * The name of the source shard from which to move the chunks out to other shards. + * + * @param sourceShardName the value to set + * @return this builder + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + this.__explicitlySet__.add("sourceShardName"); + return this; + } + /** + * The name of the destination shard to which the chunks moved out from source shard should + * be relocate to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") + private String destinationShardName; + + /** + * The name of the destination shard to which the chunks moved out from source shard should + * be relocate to. + * + * @param destinationShardName the value to set + * @return this builder + */ + public Builder destinationShardName(String destinationShardName) { + this.destinationShardName = destinationShardName; + this.__explicitlySet__.add("destinationShardName"); + return this; + } + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard + * to destination shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") + private java.util.List replicationUnits; + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard + * to destination shard. + * + * @param replicationUnits the value to set + * @return this builder + */ + public Builder replicationUnits(java.util.List replicationUnits) { + this.replicationUnits = replicationUnits; + this.__explicitlySet__.add("replicationUnits"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MoveDistributedAutonomousDatabaseReplicationUnitDetails build() { + MoveDistributedAutonomousDatabaseReplicationUnitDetails model = + new MoveDistributedAutonomousDatabaseReplicationUnitDetails( + this.sourceShardName, this.destinationShardName, this.replicationUnits); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MoveDistributedAutonomousDatabaseReplicationUnitDetails model) { + if (model.wasPropertyExplicitlySet("sourceShardName")) { + this.sourceShardName(model.getSourceShardName()); + } + if (model.wasPropertyExplicitlySet("destinationShardName")) { + this.destinationShardName(model.getDestinationShardName()); + } + if (model.wasPropertyExplicitlySet("replicationUnits")) { + this.replicationUnits(model.getReplicationUnits()); + } + 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 source shard from which to move the chunks out to other shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private final String sourceShardName; + + /** + * The name of the source shard from which to move the chunks out to other shards. + * + * @return the value + */ + public String getSourceShardName() { + return sourceShardName; + } + + /** + * The name of the destination shard to which the chunks moved out from source shard should be + * relocate to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") + private final String destinationShardName; + + /** + * The name of the destination shard to which the chunks moved out from source shard should be + * relocate to. + * + * @return the value + */ + public String getDestinationShardName() { + return destinationShardName; + } + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard to + * destination shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") + private final java.util.List replicationUnits; + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard to + * destination shard. + * + * @return the value + */ + public java.util.List getReplicationUnits() { + return replicationUnits; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MoveDistributedAutonomousDatabaseReplicationUnitDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); + sb.append(", destinationShardName=").append(String.valueOf(this.destinationShardName)); + sb.append(", replicationUnits=").append(String.valueOf(this.replicationUnits)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MoveDistributedAutonomousDatabaseReplicationUnitDetails)) { + return false; + } + + MoveDistributedAutonomousDatabaseReplicationUnitDetails other = + (MoveDistributedAutonomousDatabaseReplicationUnitDetails) o; + return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.destinationShardName, other.destinationShardName) + && java.util.Objects.equals(this.replicationUnits, other.replicationUnits) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = + (result * PRIME) + + (this.destinationShardName == null + ? 43 + : this.destinationShardName.hashCode()); + result = + (result * PRIME) + + (this.replicationUnits == null ? 43 : this.replicationUnits.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java new file mode 100644 index 00000000000..f8ad52ea7ad --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.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.distributeddatabasev26.model; + +/** + * The details for moving replication units from source shard to destination shard for the Globally + * distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MoveDistributedDatabaseReplicationUnitDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MoveDistributedDatabaseReplicationUnitDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceShardName", + "destinationShardName", + "replicationUnits" + }) + public MoveDistributedDatabaseReplicationUnitDetails( + String sourceShardName, + String destinationShardName, + java.util.List replicationUnits) { + super(); + this.sourceShardName = sourceShardName; + this.destinationShardName = destinationShardName; + this.replicationUnits = replicationUnits; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the source shard from which to move the chunks out to other shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private String sourceShardName; + + /** + * The name of the source shard from which to move the chunks out to other shards. + * + * @param sourceShardName the value to set + * @return this builder + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + this.__explicitlySet__.add("sourceShardName"); + return this; + } + /** + * The name of the destination shard to which the chunks moved out from source shard should + * be relocate to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") + private String destinationShardName; + + /** + * The name of the destination shard to which the chunks moved out from source shard should + * be relocate to. + * + * @param destinationShardName the value to set + * @return this builder + */ + public Builder destinationShardName(String destinationShardName) { + this.destinationShardName = destinationShardName; + this.__explicitlySet__.add("destinationShardName"); + return this; + } + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard + * to destination shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") + private java.util.List replicationUnits; + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard + * to destination shard. + * + * @param replicationUnits the value to set + * @return this builder + */ + public Builder replicationUnits(java.util.List replicationUnits) { + this.replicationUnits = replicationUnits; + this.__explicitlySet__.add("replicationUnits"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MoveDistributedDatabaseReplicationUnitDetails build() { + MoveDistributedDatabaseReplicationUnitDetails model = + new MoveDistributedDatabaseReplicationUnitDetails( + this.sourceShardName, this.destinationShardName, this.replicationUnits); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MoveDistributedDatabaseReplicationUnitDetails model) { + if (model.wasPropertyExplicitlySet("sourceShardName")) { + this.sourceShardName(model.getSourceShardName()); + } + if (model.wasPropertyExplicitlySet("destinationShardName")) { + this.destinationShardName(model.getDestinationShardName()); + } + if (model.wasPropertyExplicitlySet("replicationUnits")) { + this.replicationUnits(model.getReplicationUnits()); + } + 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 source shard from which to move the chunks out to other shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") + private final String sourceShardName; + + /** + * The name of the source shard from which to move the chunks out to other shards. + * + * @return the value + */ + public String getSourceShardName() { + return sourceShardName; + } + + /** + * The name of the destination shard to which the chunks moved out from source shard should be + * relocate to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") + private final String destinationShardName; + + /** + * The name of the destination shard to which the chunks moved out from source shard should be + * relocate to. + * + * @return the value + */ + public String getDestinationShardName() { + return destinationShardName; + } + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard to + * destination shard. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") + private final java.util.List replicationUnits; + + /** + * For RAFT databases please provide replication unit numbers to be moved from source shard to + * destination shard. + * + * @return the value + */ + public java.util.List getReplicationUnits() { + return replicationUnits; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MoveDistributedDatabaseReplicationUnitDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); + sb.append(", destinationShardName=").append(String.valueOf(this.destinationShardName)); + sb.append(", replicationUnits=").append(String.valueOf(this.replicationUnits)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MoveDistributedDatabaseReplicationUnitDetails)) { + return false; + } + + MoveDistributedDatabaseReplicationUnitDetails other = + (MoveDistributedDatabaseReplicationUnitDetails) o; + return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.destinationShardName, other.destinationShardName) + && java.util.Objects.equals(this.replicationUnits, other.replicationUnits) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = + (result * PRIME) + + (this.destinationShardName == null + ? 43 + : this.destinationShardName.hashCode()); + result = + (result * PRIME) + + (this.replicationUnits == null ? 43 : this.replicationUnits.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java new file mode 100644 index 00000000000..5d5240499cf --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java @@ -0,0 +1,59 @@ +/** + * 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.distributeddatabasev26.model; + +/** Possible operation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum OperationStatus 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(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java new file mode 100644 index 00000000000..033914424dc --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java @@ -0,0 +1,89 @@ +/** + * 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.distributeddatabasev26.model; + +/** Possible operation types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateDistributedDb("CREATE_DISTRIBUTED_DB"), + PatchDistributedDbInsertShards("PATCH_DISTRIBUTED_DB_INSERT_SHARDS"), + PatchDistributedDbRemoveShards("PATCH_DISTRIBUTED_DB_REMOVE_SHARDS"), + PatchDistributedDbMergeCatalogShards("PATCH_DISTRIBUTED_DB_MERGE_CATALOG_SHARDS"), + DeleteDistributedDb("DELETE_DISTRIBUTED_DB"), + ChangeDistributedDbCompartment("CHANGE_DISTRIBUTED_DB_COMPARTMENT"), + ConfigureDistributedDbGsms("CONFIGURE_DISTRIBUTED_DB_GSMS"), + ConfigureDistributedDbSharding("CONFIGURE_DISTRIBUTED_DB_SHARDING"), + RotateDistributedDbPasswords("ROTATE_DISTRIBUTED_DB_PASSWORDS"), + StartDistributedDb("START_DISTRIBUTED_DB"), + StopDistributedDb("STOP_DISTRIBUTED_DB"), + StartDistributedDbShard("START_DISTRIBUTED_DB_SHARD"), + StartDistributedDbCatalog("START_DISTRIBUTED_DB_CATALOG"), + StopDistributedDbShard("STOP_DISTRIBUTED_DB_SHARD"), + StopDistributedDbCatalog("STOP_DISTRIBUTED_DB_CATALOG"), + CreateDistributedDbShard("CREATE_DISTRIBUTED_DB_SHARD"), + CreateDistributedDbCatalog("CREATE_DISTRIBUTED_DB_CATALOG"), + CreateDistributedDbGsm("CREATE_DISTRIBUTED_DB_GSM"), + UpdateDistributedDbCatalogShards("UPDATE_DISTRIBUTED_DB_CATALOG_SHARDS"), + ValidateNetwork("VALIDATE_NETWORK"), + ExecuteValidateNetworkTests("EXECUTE_VALIDATE_NETWORK_TESTS"), + CreatePrivateEndpoint("CREATE_PRIVATE_ENDPOINT"), + DeletePrivateEndpoint("DELETE_PRIVATE_ENDPOINT"), + ChangePrivateEndpointCompartment("CHANGE_PRIVATE_ENDPOINT_COMPARTMENT"), + ReinstateProxyInstance("REINSTATE_PROXY_INSTANCE"), + DeleteDistributedDbShard("DELETE_DISTRIBUTED_DB_SHARD"), + DeleteDistributedDbCatalog("DELETE_DISTRIBUTED_DB_CATALOG"), + DeleteDistributedDbGsm("DELETE_DISTRIBUTED_DB_GSM"), + AddGdscontrolNode("ADD_GDSCONTROL_NODE"), + ChangeDistributedDbBackupConfig("CHANGE_DISTRIBUTED_DB_BACKUP_CONFIG"), + AddDistributedDbDgExadb("ADD_DISTRIBUTED_DB_DG_EXADB"), + AddDistributedDbDgAdb("ADD_DISTRIBUTED_DB_DG_ADB"), + RemoveDistributedDbDgAdb("REMOVE_DISTRIBUTED_DB_DG_ADB"), + RemoveDistributedDbDgExadb("REMOVE_DISTRIBUTED_DB_DG_EXADB"), + ConfigureDistributedDbGsmsWallet("CONFIGURE_DISTRIBUTED_DB_GSMS_WALLET"), + ValidateCaBundle("VALIDATE_CA_BUNDLE"), + RecreateFailedResource("RECREATE_FAILED_RESOURCE"), + MoveReplicationUnits("MOVE_REPLICATION_UNITS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..4550666caea --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Provide PatchInstruction(s) in items array. All instructions in items have to be of same type. + * All instructions in items have to either PatchInsertInstruction type, PatchRemoveInstruction or + * PatchMergeInstruction. Multiple instructions of different types is not allowed to be performed in + * single operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchDistributedAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchDistributedAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PatchDistributedAutonomousDatabaseDetails(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of patch instructions. + * + * @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 PatchDistributedAutonomousDatabaseDetails build() { + PatchDistributedAutonomousDatabaseDetails model = + new PatchDistributedAutonomousDatabaseDetails(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchDistributedAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of patch instructions. + * + * @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("PatchDistributedAutonomousDatabaseDetails("); + 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 PatchDistributedAutonomousDatabaseDetails)) { + return false; + } + + PatchDistributedAutonomousDatabaseDetails other = + (PatchDistributedAutonomousDatabaseDetails) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java new file mode 100644 index 00000000000..f732442c370 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Provide PatchInstuction(s) in items array. All instructions in items have to be of same type. All + * instructions in items have to either PatchInsertInstruction type, PatchRemoveInstruction or + * PatchMergeInstruction. Multiple instructions of different types is not allowed to be performed in + * single operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchDistributedDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchDistributedDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PatchDistributedDatabaseDetails(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of patch instructions. + * + * @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 PatchDistributedDatabaseDetails build() { + PatchDistributedDatabaseDetails model = new PatchDistributedDatabaseDetails(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchDistributedDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of patch instructions. + * + * @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("PatchDistributedDatabaseDetails("); + 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 PatchDistributedDatabaseDetails)) { + return false; + } + + PatchDistributedDatabaseDetails other = (PatchDistributedDatabaseDetails) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java new file mode 100644 index 00000000000..3b7920f7c20 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java @@ -0,0 +1,137 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Provide PatchInstruction(s) in items array. All instructions in items have to be of same type. + * The initial supported patch operation is MERGE with selection vcnNsgIds and value containing the + * vcnNsgIds payload.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchDistributedDatabasePrivateEndpointDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchDistributedDatabasePrivateEndpointDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PatchDistributedDatabasePrivateEndpointDetails(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of patch instructions. + * + * @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 PatchDistributedDatabasePrivateEndpointDetails build() { + PatchDistributedDatabasePrivateEndpointDetails model = + new PatchDistributedDatabasePrivateEndpointDetails(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchDistributedDatabasePrivateEndpointDetails model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of patch instructions. + * + * @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("PatchDistributedDatabasePrivateEndpointDetails("); + 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 PatchDistributedDatabasePrivateEndpointDetails)) { + return false; + } + + PatchDistributedDatabasePrivateEndpointDetails other = + (PatchDistributedDatabasePrivateEndpointDetails) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java new file mode 100644 index 00000000000..01746f14484 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java @@ -0,0 +1,146 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * An operation that inserts a value into an array, shifting array items as necessary and handling + * NOT_FOUND exceptions by creating the implied containing structure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchInsertInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchInsertInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A value to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be inserted into the target. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchInsertInstruction build() { + PatchInsertInstruction model = new PatchInsertInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchInsertInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchInsertInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** A value to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be inserted into the target. + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInsertInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInsertInstruction)) { + return false; + } + + PatchInsertInstruction other = (PatchInsertInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java new file mode 100644 index 00000000000..017e31e18ee --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java @@ -0,0 +1,144 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * A single instruction to be included as part of Patch request content.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation", + defaultImpl = PatchInstruction.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchRemoveInstruction.class, + name = "REMOVE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchInsertInstruction.class, + name = "INSERT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchMergeInstruction.class, + name = "MERGE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PatchInstruction extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"selection"}) + protected PatchInstruction(String selection) { + super(); + this.selection = selection; + } + + /** + * The set of values to which the operation applies as a [JMESPath + * expression](https://jmespath.org/specification.html) for evaluation against the context + * resource. An operation fails if the selection yields an exception, except as otherwise + * specified. Note that comparisons involving non-primitive values (objects or arrays) are not + * supported and will always evaluate to false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final String selection; + + /** + * The set of values to which the operation applies as a [JMESPath + * expression](https://jmespath.org/specification.html) for evaluation against the context + * resource. An operation fails if the selection yields an exception, except as otherwise + * specified. Note that comparisons involving non-primitive values (objects or arrays) are not + * supported and will always evaluate to false. + * + * @return the value + */ + public String getSelection() { + return selection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInstruction("); + sb.append("super=").append(super.toString()); + sb.append("selection=").append(String.valueOf(this.selection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInstruction)) { + return false; + } + + PatchInstruction other = (PatchInstruction) o; + return java.util.Objects.equals(this.selection, other.selection) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The operation that need to be performed on an element inside list. */ + public enum Operation implements com.oracle.bmc.http.internal.BmcEnum { + Insert("INSERT"), + Remove("REMOVE"), + Merge("MERGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operation v : Operation.values()) { + map.put(v.getValue(), v); + } + } + + Operation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Operation: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java new file mode 100644 index 00000000000..a17ca9e671e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java @@ -0,0 +1,152 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * An operation that recursively updates items of the selection, or adding the value if the + * selection is empty. If the value is not an object, it is used directly, otherwise each key-value + * member is used to create or update a member of the same name in the target and the same process + * is applied recursively for each object-typed value (similar to [RFC + * 7396](https://tools.ietf.org/html/rfc7396#section-2) JSON Merge Patch, except that null values + * are copied rather than transformed into deletions). NOT_FOUND exceptions are handled by creating + * the implied containing structure. To avoid referential errors if an item's descendant is also in + * the selection, items of the selection are processed in order of decreasing depth.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchMergeInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchMergeInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A value to be merged into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be merged into the target. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchMergeInstruction build() { + PatchMergeInstruction model = new PatchMergeInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchMergeInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchMergeInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** A value to be merged into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be merged into the target. + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchMergeInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchMergeInstruction)) { + return false; + } + + PatchMergeInstruction other = (PatchMergeInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java new file mode 100644 index 00000000000..d244d22662e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java @@ -0,0 +1,113 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * An operation that deletes items, ignoring NOT_FOUND exceptions. To avoid referential errors if an + * item's descendant is also in the selection, items of the selection are processed in order of + * decreasing depth.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRemoveInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchRemoveInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRemoveInstruction build() { + PatchRemoveInstruction model = new PatchRemoveInstruction(this.selection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRemoveInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchRemoveInstruction(String selection) { + super(selection); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchRemoveInstruction("); + 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 PatchRemoveInstruction)) { + return false; + } + + PatchRemoveInstruction other = (PatchRemoveInstruction) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..37d46de1c4a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details to rotate password for a shard or catalog in the Globally distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RotateDistributedAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RotateDistributedAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public RotateDistributedAutonomousDatabaseDetails(String name, String adminPassword) { + super(); + this.name = name; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"name", "adminPassword"}) + public RotateDistributedAutonomousDatabaseDetails(String name, char[] adminPassword) { + super(); + this.name = name; + this.adminPassword = adminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The shard or catalog name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The shard or catalog name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The admin password for the shard or catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard or catalog. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RotateDistributedAutonomousDatabaseDetails build() { + RotateDistributedAutonomousDatabaseDetails model = + new RotateDistributedAutonomousDatabaseDetails(this.name, this.adminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RotateDistributedAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The shard or catalog name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The shard or catalog name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The admin password for the shard or catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard or catalog. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard or catalog. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RotateDistributedAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", adminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedAutonomousDatabaseDetails)) { + return false; + } + + RotateDistributedAutonomousDatabaseDetails other = + (RotateDistributedAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java new file mode 100644 index 00000000000..e3d48e1c868 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java @@ -0,0 +1,141 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Payload to rotate passwords for shards and catalogs in the Globally distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RotateDistributedAutonomousDatabasePasswordsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RotateDistributedAutonomousDatabasePasswordsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseDetails"}) + public RotateDistributedAutonomousDatabasePasswordsDetails( + java.util.List databaseDetails) { + super(); + this.databaseDetails = databaseDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of shard or catalog password rotation details. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") + private java.util.List databaseDetails; + + /** + * Collection of shard or catalog password rotation details. + * + * @param databaseDetails the value to set + * @return this builder + */ + public Builder databaseDetails( + java.util.List databaseDetails) { + this.databaseDetails = databaseDetails; + this.__explicitlySet__.add("databaseDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RotateDistributedAutonomousDatabasePasswordsDetails build() { + RotateDistributedAutonomousDatabasePasswordsDetails model = + new RotateDistributedAutonomousDatabasePasswordsDetails(this.databaseDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RotateDistributedAutonomousDatabasePasswordsDetails model) { + if (model.wasPropertyExplicitlySet("databaseDetails")) { + this.databaseDetails(model.getDatabaseDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Collection of shard or catalog password rotation details. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") + private final java.util.List databaseDetails; + + /** + * Collection of shard or catalog password rotation details. + * + * @return the value + */ + public java.util.List getDatabaseDetails() { + return databaseDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RotateDistributedAutonomousDatabasePasswordsDetails("); + sb.append("super=").append(super.toString()); + sb.append("databaseDetails=").append(String.valueOf(this.databaseDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedAutonomousDatabasePasswordsDetails)) { + return false; + } + + RotateDistributedAutonomousDatabasePasswordsDetails other = + (RotateDistributedAutonomousDatabasePasswordsDetails) o; + return java.util.Objects.equals(this.databaseDetails, other.databaseDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseDetails == null ? 43 : this.databaseDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java new file mode 100644 index 00000000000..d8454ab5b9a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java @@ -0,0 +1,199 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details to rotate password for a shard or catalog in the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RotateDistributedDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RotateDistributedDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public RotateDistributedDatabaseDetails(String name, String adminPassword) { + super(); + this.name = name; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"name", "adminPassword"}) + public RotateDistributedDatabaseDetails(String name, char[] adminPassword) { + super(); + this.name = name; + this.adminPassword = adminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The shard or catalog name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The shard or catalog name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The admin password for the shard or catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private char[] adminPassword; + + /** + * The admin password for the shard or catalog. + * + * @param adminPassword the value to set + * @return this builder + */ + public Builder adminPassword(char[] adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RotateDistributedDatabaseDetails build() { + RotateDistributedDatabaseDetails model = + new RotateDistributedDatabaseDetails(this.name, this.adminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RotateDistributedDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The shard or catalog name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The shard or catalog name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The admin password for the shard or catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + private final char[] adminPassword; + + /** + * The admin password for the shard or catalog. + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard or catalog. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { + return adminPassword; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RotateDistributedDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", adminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedDatabaseDetails)) { + return false; + } + + RotateDistributedDatabaseDetails other = (RotateDistributedDatabaseDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java new file mode 100644 index 00000000000..18db4a072fe --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Payload to rotate passwords for shards and catalogs in the Globally distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RotateDistributedDatabasePasswordsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RotateDistributedDatabasePasswordsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseDetails"}) + public RotateDistributedDatabasePasswordsDetails( + java.util.List databaseDetails) { + super(); + this.databaseDetails = databaseDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of shard or catalog password rotation details. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") + private java.util.List databaseDetails; + + /** + * Collection of shard or catalog password rotation details. + * + * @param databaseDetails the value to set + * @return this builder + */ + public Builder databaseDetails( + java.util.List databaseDetails) { + this.databaseDetails = databaseDetails; + this.__explicitlySet__.add("databaseDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RotateDistributedDatabasePasswordsDetails build() { + RotateDistributedDatabasePasswordsDetails model = + new RotateDistributedDatabasePasswordsDetails(this.databaseDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RotateDistributedDatabasePasswordsDetails model) { + if (model.wasPropertyExplicitlySet("databaseDetails")) { + this.databaseDetails(model.getDatabaseDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Collection of shard or catalog password rotation details. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") + private final java.util.List databaseDetails; + + /** + * Collection of shard or catalog password rotation details. + * + * @return the value + */ + public java.util.List getDatabaseDetails() { + return databaseDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RotateDistributedDatabasePasswordsDetails("); + sb.append("super=").append(super.toString()); + sb.append("databaseDetails=").append(String.valueOf(this.databaseDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedDatabasePasswordsDetails)) { + return false; + } + + RotateDistributedDatabasePasswordsDetails other = + (RotateDistributedDatabasePasswordsDetails) o; + return java.util.Objects.equals(this.databaseDetails, other.databaseDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseDetails == null ? 43 : this.databaseDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java new file mode 100644 index 00000000000..ba250fddf3d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.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.distributeddatabasev26.model; + +/** + * Empty payload to scale global service manager(GSM) instances for the distributed autonomous + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleDistributedAutonomousDatabaseGsmsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScaleDistributedAutonomousDatabaseGsmsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public ScaleDistributedAutonomousDatabaseGsmsDetails() { + super(); + } + + @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 ScaleDistributedAutonomousDatabaseGsmsDetails build() { + ScaleDistributedAutonomousDatabaseGsmsDetails model = + new ScaleDistributedAutonomousDatabaseGsmsDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleDistributedAutonomousDatabaseGsmsDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleDistributedAutonomousDatabaseGsmsDetails("); + 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 ScaleDistributedAutonomousDatabaseGsmsDetails)) { + return false; + } + + ScaleDistributedAutonomousDatabaseGsmsDetails other = + (ScaleDistributedAutonomousDatabaseGsmsDetails) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java new file mode 100644 index 00000000000..60925870d39 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java @@ -0,0 +1,99 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Empty payload to scale global service manager(GSM) instances for the distributed database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleDistributedDatabaseGsmsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScaleDistributedDatabaseGsmsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public ScaleDistributedDatabaseGsmsDetails() { + super(); + } + + @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 ScaleDistributedDatabaseGsmsDetails build() { + ScaleDistributedDatabaseGsmsDetails model = new ScaleDistributedDatabaseGsmsDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleDistributedDatabaseGsmsDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleDistributedDatabaseGsmsDetails("); + 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 ScaleDistributedDatabaseGsmsDetails)) { + return false; + } + + ScaleDistributedDatabaseGsmsDetails other = (ScaleDistributedDatabaseGsmsDetails) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java new file mode 100644 index 00000000000..f7af678784c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * 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.distributeddatabasev26.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java new file mode 100644 index 00000000000..b94c7ae5211 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java @@ -0,0 +1,164 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * System data guard shard database details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SystemDataGuardDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SystemDataGuardDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public SystemDataGuardDatabase( + SystemDataGuardReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private SystemDataGuardReplica originalReplica; + + public Builder originalReplica(SystemDataGuardReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The system data guard replica details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The system data guard replica details. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas(java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemDataGuardDatabase build() { + SystemDataGuardDatabase model = + new SystemDataGuardDatabase(this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemDataGuardDatabase model) { + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final SystemDataGuardReplica originalReplica; + + public SystemDataGuardReplica getOriginalReplica() { + return originalReplica; + } + + /** The system data guard replica details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The system data guard replica details. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemDataGuardDatabase("); + sb.append("super=").append(super.toString()); + sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemDataGuardDatabase)) { + return false; + } + + SystemDataGuardDatabase other = (SystemDataGuardDatabase) o; + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java new file mode 100644 index 00000000000..3878fd1b87a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java @@ -0,0 +1,178 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * System data guard replica details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SystemDataGuardReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SystemDataGuardReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "databases"}) + public SystemDataGuardReplica( + String name, java.util.List databases) { + super(); + this.name = name; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases(java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemDataGuardReplica build() { + SystemDataGuardReplica model = new SystemDataGuardReplica(this.name, this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemDataGuardReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of data guard replica. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Details of the databases associated with the system data guard replica. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system data guard replica. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemDataGuardReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemDataGuardReplica)) { + return false; + } + + SystemDataGuardReplica other = (SystemDataGuardReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java new file mode 100644 index 00000000000..cacf0cb3ad8 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java @@ -0,0 +1,346 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * System raft cluster definition.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SystemRaftCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SystemRaftCluster + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "replicationFactor", + "witnessCount", + "ruMode", + "databases" + }) + public SystemRaftCluster( + String name, + Integer replicationFactor, + Integer witnessCount, + RuMode ruMode, + java.util.List databases) { + super(); + this.name = name; + this.replicationFactor = replicationFactor; + this.witnessCount = witnessCount; + this.ruMode = ruMode; + this.databases = databases; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @param replicationFactor the value to set + * @return this builder + */ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @param witnessCount the value to set + * @return this builder + */ + public Builder witnessCount(Integer witnessCount) { + this.witnessCount = witnessCount; + this.__explicitlySet__.add("witnessCount"); + return this; + } + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @param ruMode the value to set + * @return this builder + */ + public Builder ruMode(RuMode ruMode) { + this.ruMode = ruMode; + this.__explicitlySet__.add("ruMode"); + return this; + } + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @param databases the value to set + * @return this builder + */ + public Builder databases(java.util.List databases) { + this.databases = databases; + this.__explicitlySet__.add("databases"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemRaftCluster build() { + SystemRaftCluster model = + new SystemRaftCluster( + this.name, + this.replicationFactor, + this.witnessCount, + this.ruMode, + this.databases); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemRaftCluster model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("witnessCount")) { + this.witnessCount(model.getWitnessCount()); + } + if (model.wasPropertyExplicitlySet("ruMode")) { + this.ruMode(model.getRuMode()); + } + if (model.wasPropertyExplicitlySet("databases")) { + this.databases(model.getDatabases()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of raft cluster. It must start with a letter and contain only letters, digits, and + * underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** Witnesses RU count associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") + private final Integer witnessCount; + + /** + * Witnesses RU count associated with the raft cluster. + * + * @return the value + */ + public Integer getWitnessCount() { + return witnessCount; + } + + /** Replication factor associated with the raft cluster. */ + public enum RuMode implements com.oracle.bmc.http.internal.BmcEnum { + ReadOnly("READ_ONLY"), + ReadWrite("READ_WRITE"), + + /** + * 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(RuMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuMode v : RuMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Replication factor associated with the raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruMode") + private final RuMode ruMode; + + /** + * Replication factor associated with the raft cluster. + * + * @return the value + */ + public RuMode getRuMode() { + return ruMode; + } + + /** Details of the databases associated with the system raft cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("databases") + private final java.util.List databases; + + /** + * Details of the databases associated with the system raft cluster. + * + * @return the value + */ + public java.util.List getDatabases() { + return databases; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemRaftCluster("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); + sb.append(", ruMode=").append(String.valueOf(this.ruMode)); + sb.append(", databases=").append(String.valueOf(this.databases)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemRaftCluster)) { + return false; + } + + SystemRaftCluster other = (SystemRaftCluster) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.witnessCount, other.witnessCount) + && java.util.Objects.equals(this.ruMode, other.ruMode) + && java.util.Objects.equals(this.databases, other.databases) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); + result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); + result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..f3def5333d5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java @@ -0,0 +1,295 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The details of Globally distributed autonomous database to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDistributedAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDistributedAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "notificationTopicIds", + "freeformTags", + "definedTags" + }) + public UpdateDistributedAutonomousDatabaseDetails( + String displayName, + java.util.List notificationTopicIds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.notificationTopicIds = notificationTopicIds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the Globally distributed autonomous database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. Pass an + * empty list ({@code []}) to remove existing notification topics (set {@code + * notificationTopicIds} to empty). + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. Pass an + * empty list ({@code []}) to remove existing notification topics (set {@code + * notificationTopicIds} to empty). + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDistributedAutonomousDatabaseDetails build() { + UpdateDistributedAutonomousDatabaseDetails model = + new UpdateDistributedAutonomousDatabaseDetails( + this.displayName, + this.notificationTopicIds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDistributedAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display name of the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the Globally distributed autonomous database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. Pass an + * empty list ({@code []}) to remove existing notification topics (set {@code + * notificationTopicIds} to empty). + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed autonomous database. Pass an + * empty list ({@code []}) to remove existing notification topics (set {@code + * notificationTopicIds} to empty). + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDistributedAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedAutonomousDatabaseDetails)) { + return false; + } + + UpdateDistributedAutonomousDatabaseDetails other = + (UpdateDistributedAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java new file mode 100644 index 00000000000..fc8fa13ccaf --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java @@ -0,0 +1,294 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * The details of Globally distributed database to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDistributedDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDistributedDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "notificationTopicIds", + "freeformTags", + "definedTags" + }) + public UpdateDistributedDatabaseDetails( + String displayName, + java.util.List notificationTopicIds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.notificationTopicIds = notificationTopicIds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the Globally distributed database. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. Pass an empty list + * ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to + * empty). + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. Pass an empty list + * ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to + * empty). + * + * @param notificationTopicIds the value to set + * @return this builder + */ + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDistributedDatabaseDetails build() { + UpdateDistributedDatabaseDetails model = + new UpdateDistributedDatabaseDetails( + this.displayName, + this.notificationTopicIds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDistributedDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display name of the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the Globally distributed database. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. Pass an empty list + * ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to + * empty). + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private final java.util.List notificationTopicIds; + + /** + * The collection of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * notification topics associated with the globally distributed database. Pass an empty list + * ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to + * empty). + * + * @return the value + */ + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDistributedDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedDatabaseDetails)) { + return false; + } + + UpdateDistributedDatabaseDetails other = (UpdateDistributedDatabaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicIds == null + ? 43 + : this.notificationTopicIds.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java new file mode 100644 index 00000000000..240e6d8e538 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * The details of private endpoint to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDistributedDatabasePrivateEndpointDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) + public UpdateDistributedDatabasePrivateEndpointDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display name for DistributedDatabasePrivateEndpoint */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name for DistributedDatabasePrivateEndpoint + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDistributedDatabasePrivateEndpointDetails build() { + UpdateDistributedDatabasePrivateEndpointDetails model = + new UpdateDistributedDatabasePrivateEndpointDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDistributedDatabasePrivateEndpointDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display name for DistributedDatabasePrivateEndpoint */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name for DistributedDatabasePrivateEndpoint + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** DistributedDatabasePrivateEndpoint description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * DistributedDatabasePrivateEndpoint description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDistributedDatabasePrivateEndpointDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedDatabasePrivateEndpointDetails)) { + return false; + } + + UpdateDistributedDatabasePrivateEndpointDetails other = + (UpdateDistributedDatabasePrivateEndpointDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java new file mode 100644 index 00000000000..03fbf5bf419 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java @@ -0,0 +1,207 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Distributed database user shard space details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UserShardSpace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UserShardSpace + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) + public UserShardSpace( + String name, + UserShardSpaceReplica originalReplica, + java.util.List dataGuardReplicas) { + super(); + this.name = name; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of user shard space. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private UserShardSpaceReplica originalReplica; + + public Builder originalReplica(UserShardSpaceReplica originalReplica) { + this.originalReplica = originalReplica; + this.__explicitlySet__.add("originalReplica"); + return this; + } + /** The details of data guard replica for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private java.util.List dataGuardReplicas; + + /** + * The details of data guard replica for the user shard space. + * + * @param dataGuardReplicas the value to set + * @return this builder + */ + public Builder dataGuardReplicas(java.util.List dataGuardReplicas) { + this.dataGuardReplicas = dataGuardReplicas; + this.__explicitlySet__.add("dataGuardReplicas"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserShardSpace build() { + UserShardSpace model = + new UserShardSpace(this.name, this.originalReplica, this.dataGuardReplicas); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserShardSpace model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("originalReplica")) { + this.originalReplica(model.getOriginalReplica()); + } + if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { + this.dataGuardReplicas(model.getDataGuardReplicas()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of user shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of user shard space. It must start with a letter and contain only letters, digits, + * and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final UserShardSpaceReplica originalReplica; + + public UserShardSpaceReplica getOriginalReplica() { + return originalReplica; + } + + /** The details of data guard replica for the user shard space. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; + + /** + * The details of data guard replica for the user shard space. + * + * @return the value + */ + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserShardSpace("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UserShardSpace)) { + return false; + } + + UserShardSpace other = (UserShardSpace) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java new file mode 100644 index 00000000000..0fb308f0edb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Details of user shard space.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UserShardSpaceReplica.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UserShardSpaceReplica + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "database"}) + public UserShardSpaceReplica(String name, DistributedDatabaseShardDatabase database) { + super(); + this.name = name; + this.database = database; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of user shard space replica. It must start with a letter and contain only + * letters, digits, and underscores. Maximum length is 40 characters. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private DistributedDatabaseShardDatabase database; + + public Builder database(DistributedDatabaseShardDatabase database) { + this.database = database; + this.__explicitlySet__.add("database"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserShardSpaceReplica build() { + UserShardSpaceReplica model = new UserShardSpaceReplica(this.name, this.database); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserShardSpaceReplica model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("database")) { + this.database(model.getDatabase()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of user shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of user shard space replica. It must start with a letter and contain only letters, + * digits, and underscores. Maximum length is 40 characters. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("database") + private final DistributedDatabaseShardDatabase database; + + public DistributedDatabaseShardDatabase getDatabase() { + return database; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserShardSpaceReplica("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", database=").append(String.valueOf(this.database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UserShardSpaceReplica)) { + return false; + } + + UserShardSpaceReplica other = (UserShardSpaceReplica) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.database, other.database) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java new file mode 100644 index 00000000000..4aa2e11ab2b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java @@ -0,0 +1,202 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Specifies the Virtual Cloud Network (VCN) and the list of associated Network Security Group (NSG) + * OCIDs. + * + *

This model is shared across create (POST), update (PUT/PATCH), and retrieve (GET) operations. + * + *

- During create, {@code nsgIds} (if provided) specifies the NSGs to associate with the new + * resource. - During update or patch, {@code nsgIds} modifies the associations: provide an empty + * array ({@code []}) to clear all NSGs, or provide a new list to replace them. - GET responses + * return the current associations (which may be empty).
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VcnNsgIdsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VcnNsgIdsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vcnId", "nsgIds"}) + public VcnNsgIdsDetails(String vcnId, java.util.List nsgIds) { + super(); + this.vcnId = vcnId; + this.nsgIds = nsgIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer Virtual Cloud Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private String vcnId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer Virtual Cloud Network. + * + * @param vcnId the value to set + * @return this builder + */ + public Builder vcnId(String vcnId) { + this.vcnId = vcnId; + this.__explicitlySet__.add("vcnId"); + return this; + } + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) associated with resources in this VCN. For more + * information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) associated with resources in this VCN. For more + * information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @param nsgIds the value to set + * @return this builder + */ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VcnNsgIdsDetails build() { + VcnNsgIdsDetails model = new VcnNsgIdsDetails(this.vcnId, this.nsgIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VcnNsgIdsDetails model) { + if (model.wasPropertyExplicitlySet("vcnId")) { + this.vcnId(model.getVcnId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer Virtual Cloud Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vcnId") + private final String vcnId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer Virtual Cloud Network. + * + * @return the value + */ + public String getVcnId() { + return vcnId; + } + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the network security groups (NSGs) associated with resources in this VCN. For more + * information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the network security groups (NSGs) associated with resources in this VCN. For more + * information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VcnNsgIdsDetails("); + sb.append("super=").append(super.toString()); + sb.append("vcnId=").append(String.valueOf(this.vcnId)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VcnNsgIdsDetails)) { + return false; + } + + VcnNsgIdsDetails other = (VcnNsgIdsDetails) o; + return java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java new file mode 100644 index 00000000000..2ba34e7b3a7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java @@ -0,0 +1,965 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * Details of the request to create exadb vm cluster for shard or catalog of the distributed + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmClusterDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "subnetId", + "backupSubnetId", + "enabledECpuCount", + "totalECpuCount", + "vmFileSystemStorageSize", + "sshPublicKeys", + "licenseModel", + "domain", + "privateZoneId", + "isDiagnosticsEventsEnabled", + "isHealthMonitoringEnabled", + "isIncidentLogsEnabled", + "nsgIds", + "backupNetworkNsgIds", + "subscriptionId" + }) + public VmClusterDetails( + String compartmentId, + String subnetId, + String backupSubnetId, + Integer enabledECpuCount, + Integer totalECpuCount, + Integer vmFileSystemStorageSize, + java.util.List sshPublicKeys, + LicenseModel licenseModel, + String domain, + String privateZoneId, + Boolean isDiagnosticsEventsEnabled, + Boolean isHealthMonitoringEnabled, + Boolean isIncidentLogsEnabled, + java.util.List nsgIds, + java.util.List backupNetworkNsgIds, + String subscriptionId) { + super(); + this.compartmentId = compartmentId; + this.subnetId = subnetId; + this.backupSubnetId = backupSubnetId; + this.enabledECpuCount = enabledECpuCount; + this.totalECpuCount = totalECpuCount; + this.vmFileSystemStorageSize = vmFileSystemStorageSize; + this.sshPublicKeys = sshPublicKeys; + this.licenseModel = licenseModel; + this.domain = domain; + this.privateZoneId = privateZoneId; + this.isDiagnosticsEventsEnabled = isDiagnosticsEventsEnabled; + this.isHealthMonitoringEnabled = isHealthMonitoringEnabled; + this.isIncidentLogsEnabled = isIncidentLogsEnabled; + this.nsgIds = nsgIds; + this.backupNetworkNsgIds = backupNetworkNsgIds; + this.subscriptionId = subscriptionId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSubnetId") + private String backupSubnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @param backupSubnetId the value to set + * @return this builder + */ + public Builder backupSubnetId(String backupSubnetId) { + this.backupSubnetId = backupSubnetId; + this.__explicitlySet__.add("backupSubnetId"); + return this; + } + /** The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("enabledECpuCount") + private Integer enabledECpuCount; + + /** + * The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + * + * @param enabledECpuCount the value to set + * @return this builder + */ + public Builder enabledECpuCount(Integer enabledECpuCount) { + this.enabledECpuCount = enabledECpuCount; + this.__explicitlySet__.add("enabledECpuCount"); + return this; + } + /** The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalECpuCount") + private Integer totalECpuCount; + + /** + * The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + * + * @param totalECpuCount the value to set + * @return this builder + */ + public Builder totalECpuCount(Integer totalECpuCount) { + this.totalECpuCount = totalECpuCount; + this.__explicitlySet__.add("totalECpuCount"); + return this; + } + /** File System Storage Size in GBs for Exadata VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmFileSystemStorageSize") + private Integer vmFileSystemStorageSize; + + /** + * File System Storage Size in GBs for Exadata VM cluster. + * + * @param vmFileSystemStorageSize the value to set + * @return this builder + */ + public Builder vmFileSystemStorageSize(Integer vmFileSystemStorageSize) { + this.vmFileSystemStorageSize = vmFileSystemStorageSize; + this.__explicitlySet__.add("vmFileSystemStorageSize"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM + * cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM + * cluster on Exascale Infrastructure. + * + * @param sshPublicKeys the value to set + * @return this builder + */ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale + * Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale + * Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on + * Exascale Infrastructure only. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private String domain; + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on + * Exascale Infrastructure only. + * + * @param domain the value to set + * @return this builder + */ + public Builder domain(String domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } + /** The private zone ID in which you want DNS records to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateZoneId") + private String privateZoneId; + + /** + * The private zone ID in which you want DNS records to be created. + * + * @param privateZoneId the value to set + * @return this builder + */ + public Builder privateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + this.__explicitlySet__.add("privateZoneId"); + return this; + } + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling + * diagnostic collection allows you to receive Events service notifications for guest VM + * issues. Diagnostic collection also allows Oracle to provide enhanced service and + * proactive support for your Exadata system. You can enable diagnostic collection during VM + * cluster provisioning. You can also disable or enable it at any time using the {@code + * UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDiagnosticsEventsEnabled") + private Boolean isDiagnosticsEventsEnabled; + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling + * diagnostic collection allows you to receive Events service notifications for guest VM + * issues. Diagnostic collection also allows Oracle to provide enhanced service and + * proactive support for your Exadata system. You can enable diagnostic collection during VM + * cluster provisioning. You can also disable or enable it at any time using the {@code + * UpdateVmCluster} API. + * + * @param isDiagnosticsEventsEnabled the value to set + * @return this builder + */ + public Builder isDiagnosticsEventsEnabled(Boolean isDiagnosticsEventsEnabled) { + this.isDiagnosticsEventsEnabled = isDiagnosticsEventsEnabled; + this.__explicitlySet__.add("isDiagnosticsEventsEnabled"); + return this; + } + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health + * monitoring allows Oracle to collect diagnostic data and share it with its operations and + * support personnel. You may also receive notifications for some events. Collecting health + * diagnostics enables Oracle to provide proactive support and enhanced service for your + * system. Optionally enable health monitoring while provisioning a system. You can also + * disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isHealthMonitoringEnabled") + private Boolean isHealthMonitoringEnabled; + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health + * monitoring allows Oracle to collect diagnostic data and share it with its operations and + * support personnel. You may also receive notifications for some events. Collecting health + * diagnostics enables Oracle to provide proactive support and enhanced service for your + * system. Optionally enable health monitoring while provisioning a system. You can also + * disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. + * + * @param isHealthMonitoringEnabled the value to set + * @return this builder + */ + public Builder isHealthMonitoringEnabled(Boolean isHealthMonitoringEnabled) { + this.isHealthMonitoringEnabled = isHealthMonitoringEnabled; + this.__explicitlySet__.add("isHealthMonitoringEnabled"); + return this; + } + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. + * Enabling incident logs collection allows Oracle to receive Events service notifications + * for guest VM issues, collect incident logs and traces, and use them to diagnose issues + * and resolve them. Optionally enable incident logs collection while provisioning a system. + * You can also disable or enable incident logs collection anytime using the {@code + * UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIncidentLogsEnabled") + private Boolean isIncidentLogsEnabled; + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. + * Enabling incident logs collection allows Oracle to receive Events service notifications + * for guest VM issues, collect incident logs and traces, and use them to diagnose issues + * and resolve them. Optionally enable incident logs collection while provisioning a system. + * You can also disable or enable incident logs collection anytime using the {@code + * UpdateVmCluster} API. + * + * @param isIncidentLogsEnabled the value to set + * @return this builder + */ + public Builder isIncidentLogsEnabled(Boolean isIncidentLogsEnabled) { + this.isIncidentLogsEnabled = isIncidentLogsEnabled; + this.__explicitlySet__.add("isIncidentLogsEnabled"); + return this; + } + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * network security groups (NSGs) to which this resource belongs. Setting this to an empty + * list removes all resources from all NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * The list of + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * network security groups (NSGs) to which this resource belongs. Setting this to an empty + * list removes all resources from all NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @param nsgIds the value to set + * @return this builder + */ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** + * A list of the + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all + * NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * Applicable only to Exadata systems. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds") + private java.util.List backupNetworkNsgIds; + + /** + * A list of the + * [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all + * NSGs. For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * Applicable only to Exadata systems. + * + * @param backupNetworkNsgIds the value to set + * @return this builder + */ + public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { + this.backupNetworkNsgIds = backupNetworkNsgIds; + this.__explicitlySet__.add("backupNetworkNsgIds"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterDetails build() { + VmClusterDetails model = + new VmClusterDetails( + this.compartmentId, + this.subnetId, + this.backupSubnetId, + this.enabledECpuCount, + this.totalECpuCount, + this.vmFileSystemStorageSize, + this.sshPublicKeys, + this.licenseModel, + this.domain, + this.privateZoneId, + this.isDiagnosticsEventsEnabled, + this.isHealthMonitoringEnabled, + this.isIncidentLogsEnabled, + this.nsgIds, + this.backupNetworkNsgIds, + this.subscriptionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("backupSubnetId")) { + this.backupSubnetId(model.getBackupSubnetId()); + } + if (model.wasPropertyExplicitlySet("enabledECpuCount")) { + this.enabledECpuCount(model.getEnabledECpuCount()); + } + if (model.wasPropertyExplicitlySet("totalECpuCount")) { + this.totalECpuCount(model.getTotalECpuCount()); + } + if (model.wasPropertyExplicitlySet("vmFileSystemStorageSize")) { + this.vmFileSystemStorageSize(model.getVmFileSystemStorageSize()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } + if (model.wasPropertyExplicitlySet("privateZoneId")) { + this.privateZoneId(model.getPrivateZoneId()); + } + if (model.wasPropertyExplicitlySet("isDiagnosticsEventsEnabled")) { + this.isDiagnosticsEventsEnabled(model.getIsDiagnosticsEventsEnabled()); + } + if (model.wasPropertyExplicitlySet("isHealthMonitoringEnabled")) { + this.isHealthMonitoringEnabled(model.getIsHealthMonitoringEnabled()); + } + if (model.wasPropertyExplicitlySet("isIncidentLogsEnabled")) { + this.isIncidentLogsEnabled(model.getIsIncidentLogsEnabled()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { + this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment for VM Cluster. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSubnetId") + private final String backupSubnetId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public String getBackupSubnetId() { + return backupSubnetId; + } + + /** The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("enabledECpuCount") + private final Integer enabledECpuCount; + + /** + * The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public Integer getEnabledECpuCount() { + return enabledECpuCount; + } + + /** The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalECpuCount") + private final Integer totalECpuCount; + + /** + * The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + * + * @return the value + */ + public Integer getTotalECpuCount() { + return totalECpuCount; + } + + /** File System Storage Size in GBs for Exadata VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmFileSystemStorageSize") + private final Integer vmFileSystemStorageSize; + + /** + * File System Storage Size in GBs for Exadata VM cluster. + * + * @return the value + */ + public Integer getVmFileSystemStorageSize() { + return vmFileSystemStorageSize; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster + * on Exascale Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster + * on Exascale Infrastructure. + * + * @return the value + */ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. + * The default is BRING_YOUR_OWN_LICENSE. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale + * Infrastructure only. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final String domain; + + /** + * A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the + * Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the + * domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS + * domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale + * Infrastructure only. + * + * @return the value + */ + public String getDomain() { + return domain; + } + + /** The private zone ID in which you want DNS records to be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateZoneId") + private final String privateZoneId; + + /** + * The private zone ID in which you want DNS records to be created. + * + * @return the value + */ + public String getPrivateZoneId() { + return privateZoneId; + } + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling diagnostic + * collection allows you to receive Events service notifications for guest VM issues. Diagnostic + * collection also allows Oracle to provide enhanced service and proactive support for your + * Exadata system. You can enable diagnostic collection during VM cluster provisioning. You can + * also disable or enable it at any time using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDiagnosticsEventsEnabled") + private final Boolean isDiagnosticsEventsEnabled; + + /** + * Indicates whether diagnostic collection is enabled for the VM cluster. Enabling diagnostic + * collection allows you to receive Events service notifications for guest VM issues. Diagnostic + * collection also allows Oracle to provide enhanced service and proactive support for your + * Exadata system. You can enable diagnostic collection during VM cluster provisioning. You can + * also disable or enable it at any time using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled; + } + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health monitoring + * allows Oracle to collect diagnostic data and share it with its operations and support + * personnel. You may also receive notifications for some events. Collecting health diagnostics + * enables Oracle to provide proactive support and enhanced service for your system. Optionally + * enable health monitoring while provisioning a system. You can also disable or enable health + * monitoring anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isHealthMonitoringEnabled") + private final Boolean isHealthMonitoringEnabled; + + /** + * Indicates whether health monitoring is enabled for the VM cluster. Enabling health monitoring + * allows Oracle to collect diagnostic data and share it with its operations and support + * personnel. You may also receive notifications for some events. Collecting health diagnostics + * enables Oracle to provide proactive support and enhanced service for your system. Optionally + * enable health monitoring while provisioning a system. You can also disable or enable health + * monitoring anytime using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsHealthMonitoringEnabled() { + return isHealthMonitoringEnabled; + } + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. Enabling + * incident logs collection allows Oracle to receive Events service notifications for guest VM + * issues, collect incident logs and traces, and use them to diagnose issues and resolve them. + * Optionally enable incident logs collection while provisioning a system. You can also disable + * or enable incident logs collection anytime using the {@code UpdateVmCluster} API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIncidentLogsEnabled") + private final Boolean isIncidentLogsEnabled; + + /** + * Indicates whether incident logs and trace collection are enabled for the VM cluster. Enabling + * incident logs collection allows Oracle to receive Events service notifications for guest VM + * issues, collect incident logs and traces, and use them to diagnose issues and resolve them. + * Optionally enable incident logs collection while provisioning a system. You can also disable + * or enable incident logs collection anytime using the {@code UpdateVmCluster} API. + * + * @return the value + */ + public Boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled; + } + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the network security groups (NSGs) to which this resource belongs. Setting this to an + * empty list removes all resources from all NSGs. For more information about NSGs, see + * [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the network security groups (NSGs) to which this resource belongs. Setting this to an + * empty list removes all resources from all NSGs. For more information about NSGs, see + * [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + + /** + * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all NSGs. + * For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable + * only to Exadata systems. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds") + private final java.util.List backupNetworkNsgIds; + + /** + * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the network security groups (NSGs) that the backup network of this DB system belongs to. + * Setting this to an empty array after the list is created removes the resource from all NSGs. + * For more information about NSGs, see [Security + * Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable + * only to Exadata systems. + * + * @return the value + */ + public java.util.List getBackupNetworkNsgIds() { + return backupNetworkNsgIds; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * subscription with which resource needs to be associated with. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", backupSubnetId=").append(String.valueOf(this.backupSubnetId)); + sb.append(", enabledECpuCount=").append(String.valueOf(this.enabledECpuCount)); + sb.append(", totalECpuCount=").append(String.valueOf(this.totalECpuCount)); + sb.append(", vmFileSystemStorageSize=") + .append(String.valueOf(this.vmFileSystemStorageSize)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", domain=").append(String.valueOf(this.domain)); + sb.append(", privateZoneId=").append(String.valueOf(this.privateZoneId)); + sb.append(", isDiagnosticsEventsEnabled=") + .append(String.valueOf(this.isDiagnosticsEventsEnabled)); + sb.append(", isHealthMonitoringEnabled=") + .append(String.valueOf(this.isHealthMonitoringEnabled)); + sb.append(", isIncidentLogsEnabled=").append(String.valueOf(this.isIncidentLogsEnabled)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmClusterDetails)) { + return false; + } + + VmClusterDetails other = (VmClusterDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.backupSubnetId, other.backupSubnetId) + && java.util.Objects.equals(this.enabledECpuCount, other.enabledECpuCount) + && java.util.Objects.equals(this.totalECpuCount, other.totalECpuCount) + && java.util.Objects.equals( + this.vmFileSystemStorageSize, other.vmFileSystemStorageSize) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.domain, other.domain) + && java.util.Objects.equals(this.privateZoneId, other.privateZoneId) + && java.util.Objects.equals( + this.isDiagnosticsEventsEnabled, other.isDiagnosticsEventsEnabled) + && java.util.Objects.equals( + this.isHealthMonitoringEnabled, other.isHealthMonitoringEnabled) + && java.util.Objects.equals(this.isIncidentLogsEnabled, other.isIncidentLogsEnabled) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.backupSubnetId == null ? 43 : this.backupSubnetId.hashCode()); + result = + (result * PRIME) + + (this.enabledECpuCount == null ? 43 : this.enabledECpuCount.hashCode()); + result = + (result * PRIME) + + (this.totalECpuCount == null ? 43 : this.totalECpuCount.hashCode()); + result = + (result * PRIME) + + (this.vmFileSystemStorageSize == null + ? 43 + : this.vmFileSystemStorageSize.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); + result = + (result * PRIME) + + (this.privateZoneId == null ? 43 : this.privateZoneId.hashCode()); + result = + (result * PRIME) + + (this.isDiagnosticsEventsEnabled == null + ? 43 + : this.isDiagnosticsEventsEnabled.hashCode()); + result = + (result * PRIME) + + (this.isHealthMonitoringEnabled == null + ? 43 + : this.isHealthMonitoringEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIncidentLogsEnabled == null + ? 43 + : this.isIncidentLogsEnabled.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkNsgIds == null + ? 43 + : this.backupNetworkNsgIds.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java new file mode 100644 index 00000000000..757d851bf0d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java @@ -0,0 +1,489 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * A description of workrequest status
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the work request + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java new file mode 100644 index 00000000000..a20cf1e281a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.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.distributeddatabasev26.model; + +/** + * An error encountered while executing a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human readable description of the issue encountered. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human readable description of the issue encountered. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..e3193c74b5b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Results of a workRequestError search. Contains both WorkRequestError items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestError objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestError objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..af0b3552fc0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java @@ -0,0 +1,169 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * A log message from the execution of a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..07c42d10591 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Results of a workRequestLog search. Contains both workRequestLog items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java new file mode 100644 index 00000000000..f6bd72a22ef --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java @@ -0,0 +1,307 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * A resource created or operated on by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type the work request affects. + * + * @param entityType the value to set + * @return this builder + */ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..6f4cec178c1 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java @@ -0,0 +1,52 @@ +/** + * 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.distributeddatabasev26.model; + +/** Possible Metadata keys for workRequest resource metadata */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + IsDryRun("IS_DRY_RUN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java new file mode 100644 index 00000000000..c8c715ff13a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java @@ -0,0 +1,491 @@ +/** + * 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.distributeddatabasev26.model; + +/** + * A summary of the status of a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the work request + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..6ab59861a6e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.model; + +/** + * Results of a workRequest search. Contains both WorkRequest items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java new file mode 100644 index 00000000000..8fb56f5e0df --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java @@ -0,0 +1,393 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * AddDistributedAutonomousDatabaseGdsControlNodeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class AddDistributedAutonomousDatabaseGdsControlNodeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * Details required to provision the new Global database services control(GDS CTL) node for the + * Distributed autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + addDistributedAutonomousDatabaseGdsControlNodeDetails; + + /** + * Details required to provision the new Global database services control(GDS CTL) node for the + * Distributed autonomous database. + */ + public com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + getAddDistributedAutonomousDatabaseGdsControlNodeDetails() { + return addDistributedAutonomousDatabaseGdsControlNodeDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + getBody$() { + return addDistributedAutonomousDatabaseGdsControlNodeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDistributedAutonomousDatabaseGdsControlNodeRequest, + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * Details required to provision the new Global database services control(GDS CTL) node for + * the Distributed autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + addDistributedAutonomousDatabaseGdsControlNodeDetails = null; + + /** + * Details required to provision the new Global database services control(GDS CTL) node for + * the Distributed autonomous database. + * + * @param addDistributedAutonomousDatabaseGdsControlNodeDetails the value to set + * @return this builder instance + */ + public Builder addDistributedAutonomousDatabaseGdsControlNodeDetails( + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + addDistributedAutonomousDatabaseGdsControlNodeDetails) { + this.addDistributedAutonomousDatabaseGdsControlNodeDetails = + addDistributedAutonomousDatabaseGdsControlNodeDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AddDistributedAutonomousDatabaseGdsControlNodeRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + addDistributedAutonomousDatabaseGdsControlNodeDetails( + o.getAddDistributedAutonomousDatabaseGdsControlNodeDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDistributedAutonomousDatabaseGdsControlNodeRequest 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 AddDistributedAutonomousDatabaseGdsControlNodeRequest + */ + public AddDistributedAutonomousDatabaseGdsControlNodeRequest build() { + AddDistributedAutonomousDatabaseGdsControlNodeRequest 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.distributeddatabasev26.model + .AddDistributedAutonomousDatabaseGdsControlNodeDetails + body) { + addDistributedAutonomousDatabaseGdsControlNodeDetails(body); + return this; + } + + /** + * Build the instance of AddDistributedAutonomousDatabaseGdsControlNodeRequest 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 AddDistributedAutonomousDatabaseGdsControlNodeRequest + */ + public AddDistributedAutonomousDatabaseGdsControlNodeRequest + buildWithoutInvocationCallback() { + AddDistributedAutonomousDatabaseGdsControlNodeRequest request = + new AddDistributedAutonomousDatabaseGdsControlNodeRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.addDistributedAutonomousDatabaseGdsControlNodeDetails = + addDistributedAutonomousDatabaseGdsControlNodeDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // AddDistributedAutonomousDatabaseGdsControlNodeRequest(distributedAutonomousDatabaseId, addDistributedAutonomousDatabaseGdsControlNodeDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .addDistributedAutonomousDatabaseGdsControlNodeDetails( + addDistributedAutonomousDatabaseGdsControlNodeDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",addDistributedAutonomousDatabaseGdsControlNodeDetails=") + .append(String.valueOf(this.addDistributedAutonomousDatabaseGdsControlNodeDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeRequest)) { + return false; + } + + AddDistributedAutonomousDatabaseGdsControlNodeRequest other = + (AddDistributedAutonomousDatabaseGdsControlNodeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.addDistributedAutonomousDatabaseGdsControlNodeDetails, + other.addDistributedAutonomousDatabaseGdsControlNodeDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.addDistributedAutonomousDatabaseGdsControlNodeDetails == null + ? 43 + : this.addDistributedAutonomousDatabaseGdsControlNodeDetails + .hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java new file mode 100644 index 00000000000..73e2629afcf --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java @@ -0,0 +1,385 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * AddDistributedDatabaseGdsControlNodeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class AddDistributedDatabaseGdsControlNodeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedDatabaseGdsControlNodeDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * Details required to provision the new Global database services control(GDS CTL) node for the + * Distributed database. + */ + private com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails + addDistributedDatabaseGdsControlNodeDetails; + + /** + * Details required to provision the new Global database services control(GDS CTL) node for the + * Distributed database. + */ + public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails + getAddDistributedDatabaseGdsControlNodeDetails() { + return addDistributedDatabaseGdsControlNodeDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails + getBody$() { + return addDistributedDatabaseGdsControlNodeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDistributedDatabaseGdsControlNodeRequest, + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedDatabaseGdsControlNodeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * Details required to provision the new Global database services control(GDS CTL) node for + * the Distributed database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .AddDistributedDatabaseGdsControlNodeDetails + addDistributedDatabaseGdsControlNodeDetails = null; + + /** + * Details required to provision the new Global database services control(GDS CTL) node for + * the Distributed database. + * + * @param addDistributedDatabaseGdsControlNodeDetails the value to set + * @return this builder instance + */ + public Builder addDistributedDatabaseGdsControlNodeDetails( + com.oracle.bmc.distributeddatabasev26.model + .AddDistributedDatabaseGdsControlNodeDetails + addDistributedDatabaseGdsControlNodeDetails) { + this.addDistributedDatabaseGdsControlNodeDetails = + addDistributedDatabaseGdsControlNodeDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + addDistributedDatabaseGdsControlNodeDetails( + o.getAddDistributedDatabaseGdsControlNodeDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDistributedDatabaseGdsControlNodeRequest 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 AddDistributedDatabaseGdsControlNodeRequest + */ + public AddDistributedDatabaseGdsControlNodeRequest build() { + AddDistributedDatabaseGdsControlNodeRequest 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.distributeddatabasev26.model + .AddDistributedDatabaseGdsControlNodeDetails + body) { + addDistributedDatabaseGdsControlNodeDetails(body); + return this; + } + + /** + * Build the instance of AddDistributedDatabaseGdsControlNodeRequest 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 AddDistributedDatabaseGdsControlNodeRequest + */ + public AddDistributedDatabaseGdsControlNodeRequest buildWithoutInvocationCallback() { + AddDistributedDatabaseGdsControlNodeRequest request = + new AddDistributedDatabaseGdsControlNodeRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.addDistributedDatabaseGdsControlNodeDetails = + addDistributedDatabaseGdsControlNodeDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new AddDistributedDatabaseGdsControlNodeRequest(distributedDatabaseId, + // addDistributedDatabaseGdsControlNodeDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabaseId(distributedDatabaseId) + .addDistributedDatabaseGdsControlNodeDetails( + addDistributedDatabaseGdsControlNodeDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",addDistributedDatabaseGdsControlNodeDetails=") + .append(String.valueOf(this.addDistributedDatabaseGdsControlNodeDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedDatabaseGdsControlNodeRequest)) { + return false; + } + + AddDistributedDatabaseGdsControlNodeRequest other = + (AddDistributedDatabaseGdsControlNodeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.addDistributedDatabaseGdsControlNodeDetails, + other.addDistributedDatabaseGdsControlNodeDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.addDistributedDatabaseGdsControlNodeDetails == null + ? 43 + : this.addDistributedDatabaseGdsControlNodeDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java new file mode 100644 index 00000000000..12375e90c7e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java @@ -0,0 +1,385 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ChangeDistributedAutonomousDatabaseCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedAutonomousDatabaseCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails> { + + /** Request to move the Globally distributed autonomous database to a different compartment. */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + changeDistributedAutonomousDatabaseCompartmentDetails; + + /** Request to move the Globally distributed autonomous database to a different compartment. */ + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + getChangeDistributedAutonomousDatabaseCompartmentDetails() { + return changeDistributedAutonomousDatabaseCompartmentDetails; + } + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + getBody$() { + return changeDistributedAutonomousDatabaseCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDistributedAutonomousDatabaseCompartmentRequest, + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to move the Globally distributed autonomous database to a different compartment. + */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + changeDistributedAutonomousDatabaseCompartmentDetails = null; + + /** + * Request to move the Globally distributed autonomous database to a different compartment. + * + * @param changeDistributedAutonomousDatabaseCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDistributedAutonomousDatabaseCompartmentDetails( + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + changeDistributedAutonomousDatabaseCompartmentDetails) { + this.changeDistributedAutonomousDatabaseCompartmentDetails = + changeDistributedAutonomousDatabaseCompartmentDetails; + return this; + } + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentRequest o) { + changeDistributedAutonomousDatabaseCompartmentDetails( + o.getChangeDistributedAutonomousDatabaseCompartmentDetails()); + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDistributedAutonomousDatabaseCompartmentRequest 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 ChangeDistributedAutonomousDatabaseCompartmentRequest + */ + public ChangeDistributedAutonomousDatabaseCompartmentRequest build() { + ChangeDistributedAutonomousDatabaseCompartmentRequest 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.distributeddatabasev26.model + .ChangeDistributedAutonomousDatabaseCompartmentDetails + body) { + changeDistributedAutonomousDatabaseCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDistributedAutonomousDatabaseCompartmentRequest 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 ChangeDistributedAutonomousDatabaseCompartmentRequest + */ + public ChangeDistributedAutonomousDatabaseCompartmentRequest + buildWithoutInvocationCallback() { + ChangeDistributedAutonomousDatabaseCompartmentRequest request = + new ChangeDistributedAutonomousDatabaseCompartmentRequest(); + request.changeDistributedAutonomousDatabaseCompartmentDetails = + changeDistributedAutonomousDatabaseCompartmentDetails; + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // ChangeDistributedAutonomousDatabaseCompartmentRequest(changeDistributedAutonomousDatabaseCompartmentDetails, distributedAutonomousDatabaseId, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeDistributedAutonomousDatabaseCompartmentDetails( + changeDistributedAutonomousDatabaseCompartmentDetails) + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeDistributedAutonomousDatabaseCompartmentDetails=") + .append(String.valueOf(this.changeDistributedAutonomousDatabaseCompartmentDetails)); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentRequest)) { + return false; + } + + ChangeDistributedAutonomousDatabaseCompartmentRequest other = + (ChangeDistributedAutonomousDatabaseCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeDistributedAutonomousDatabaseCompartmentDetails, + other.changeDistributedAutonomousDatabaseCompartmentDetails) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeDistributedAutonomousDatabaseCompartmentDetails == null + ? 43 + : this.changeDistributedAutonomousDatabaseCompartmentDetails + .hashCode()); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java new file mode 100644 index 00000000000..ce6497ad3b9 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java @@ -0,0 +1,392 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ChangeDistributedAutonomousDbBackupConfigRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedAutonomousDbBackupConfigRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous + * database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + changeDistributedAutonomousDbBackupConfigDetails; + + /** + * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous + * database. + */ + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + getChangeDistributedAutonomousDbBackupConfigDetails() { + return changeDistributedAutonomousDbBackupConfigDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + getBody$() { + return changeDistributedAutonomousDbBackupConfigDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDistributedAutonomousDbBackupConfigRequest, + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed + * autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + changeDistributedAutonomousDbBackupConfigDetails = null; + + /** + * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed + * autonomous database. + * + * @param changeDistributedAutonomousDbBackupConfigDetails the value to set + * @return this builder instance + */ + public Builder changeDistributedAutonomousDbBackupConfigDetails( + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + changeDistributedAutonomousDbBackupConfigDetails) { + this.changeDistributedAutonomousDbBackupConfigDetails = + changeDistributedAutonomousDbBackupConfigDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDistributedAutonomousDbBackupConfigRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + changeDistributedAutonomousDbBackupConfigDetails( + o.getChangeDistributedAutonomousDbBackupConfigDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDistributedAutonomousDbBackupConfigRequest 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 ChangeDistributedAutonomousDbBackupConfigRequest + */ + public ChangeDistributedAutonomousDbBackupConfigRequest build() { + ChangeDistributedAutonomousDbBackupConfigRequest 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.distributeddatabasev26.model + .ChangeDistributedAutonomousDbBackupConfigDetails + body) { + changeDistributedAutonomousDbBackupConfigDetails(body); + return this; + } + + /** + * Build the instance of ChangeDistributedAutonomousDbBackupConfigRequest 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 ChangeDistributedAutonomousDbBackupConfigRequest + */ + public ChangeDistributedAutonomousDbBackupConfigRequest buildWithoutInvocationCallback() { + ChangeDistributedAutonomousDbBackupConfigRequest request = + new ChangeDistributedAutonomousDbBackupConfigRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.changeDistributedAutonomousDbBackupConfigDetails = + changeDistributedAutonomousDbBackupConfigDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeDistributedAutonomousDbBackupConfigRequest(distributedAutonomousDatabaseId, + // changeDistributedAutonomousDbBackupConfigDetails, opcRequestId, ifMatch, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .changeDistributedAutonomousDbBackupConfigDetails( + changeDistributedAutonomousDbBackupConfigDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",changeDistributedAutonomousDbBackupConfigDetails=") + .append(String.valueOf(this.changeDistributedAutonomousDbBackupConfigDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigRequest)) { + return false; + } + + ChangeDistributedAutonomousDbBackupConfigRequest other = + (ChangeDistributedAutonomousDbBackupConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.changeDistributedAutonomousDbBackupConfigDetails, + other.changeDistributedAutonomousDbBackupConfigDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.changeDistributedAutonomousDbBackupConfigDetails == null + ? 43 + : this.changeDistributedAutonomousDbBackupConfigDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java new file mode 100644 index 00000000000..c14bf7f9d2d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java @@ -0,0 +1,375 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ChangeDistributedDatabaseCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDatabaseCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabaseCompartmentDetails> { + + /** Request to move the Globally distributed database to a different compartment. */ + private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails + changeDistributedDatabaseCompartmentDetails; + + /** Request to move the Globally distributed database to a different compartment. */ + public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails + getChangeDistributedDatabaseCompartmentDetails() { + return changeDistributedDatabaseCompartmentDetails; + } + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails + getBody$() { + return changeDistributedDatabaseCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDistributedDatabaseCompartmentRequest, + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabaseCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to move the Globally distributed database to a different compartment. */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabaseCompartmentDetails + changeDistributedDatabaseCompartmentDetails = null; + + /** + * Request to move the Globally distributed database to a different compartment. + * + * @param changeDistributedDatabaseCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDistributedDatabaseCompartmentDetails( + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabaseCompartmentDetails + changeDistributedDatabaseCompartmentDetails) { + this.changeDistributedDatabaseCompartmentDetails = + changeDistributedDatabaseCompartmentDetails; + return this; + } + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDistributedDatabaseCompartmentRequest o) { + changeDistributedDatabaseCompartmentDetails( + o.getChangeDistributedDatabaseCompartmentDetails()); + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDistributedDatabaseCompartmentRequest 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 ChangeDistributedDatabaseCompartmentRequest + */ + public ChangeDistributedDatabaseCompartmentRequest build() { + ChangeDistributedDatabaseCompartmentRequest 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.distributeddatabasev26.model + .ChangeDistributedDatabaseCompartmentDetails + body) { + changeDistributedDatabaseCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDistributedDatabaseCompartmentRequest 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 ChangeDistributedDatabaseCompartmentRequest + */ + public ChangeDistributedDatabaseCompartmentRequest buildWithoutInvocationCallback() { + ChangeDistributedDatabaseCompartmentRequest request = + new ChangeDistributedDatabaseCompartmentRequest(); + request.changeDistributedDatabaseCompartmentDetails = + changeDistributedDatabaseCompartmentDetails; + request.distributedDatabaseId = distributedDatabaseId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // ChangeDistributedDatabaseCompartmentRequest(changeDistributedDatabaseCompartmentDetails, distributedDatabaseId, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeDistributedDatabaseCompartmentDetails( + changeDistributedDatabaseCompartmentDetails) + .distributedDatabaseId(distributedDatabaseId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeDistributedDatabaseCompartmentDetails=") + .append(String.valueOf(this.changeDistributedDatabaseCompartmentDetails)); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabaseCompartmentRequest)) { + return false; + } + + ChangeDistributedDatabaseCompartmentRequest other = + (ChangeDistributedDatabaseCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeDistributedDatabaseCompartmentDetails, + other.changeDistributedDatabaseCompartmentDetails) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeDistributedDatabaseCompartmentDetails == null + ? 43 + : this.changeDistributedDatabaseCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java new file mode 100644 index 00000000000..ee503c5dee3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ChangeDistributedDatabasePrivateEndpointCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDatabasePrivateEndpointCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails> { + + /** Request to move the private endpoint to a different compartment. */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + changeDistributedDatabasePrivateEndpointCompartmentDetails; + + /** Request to move the private endpoint to a different compartment. */ + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + getChangeDistributedDatabasePrivateEndpointCompartmentDetails() { + return changeDistributedDatabasePrivateEndpointCompartmentDetails; + } + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + getBody$() { + return changeDistributedDatabasePrivateEndpointCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDistributedDatabasePrivateEndpointCompartmentRequest, + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to move the private endpoint to a different compartment. */ + private com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + changeDistributedDatabasePrivateEndpointCompartmentDetails = null; + + /** + * Request to move the private endpoint to a different compartment. + * + * @param changeDistributedDatabasePrivateEndpointCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDistributedDatabasePrivateEndpointCompartmentDetails( + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + changeDistributedDatabasePrivateEndpointCompartmentDetails) { + this.changeDistributedDatabasePrivateEndpointCompartmentDetails = + changeDistributedDatabasePrivateEndpointCompartmentDetails; + return this; + } + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentRequest o) { + changeDistributedDatabasePrivateEndpointCompartmentDetails( + o.getChangeDistributedDatabasePrivateEndpointCompartmentDetails()); + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDistributedDatabasePrivateEndpointCompartmentRequest 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 ChangeDistributedDatabasePrivateEndpointCompartmentRequest + */ + public ChangeDistributedDatabasePrivateEndpointCompartmentRequest build() { + ChangeDistributedDatabasePrivateEndpointCompartmentRequest 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.distributeddatabasev26.model + .ChangeDistributedDatabasePrivateEndpointCompartmentDetails + body) { + changeDistributedDatabasePrivateEndpointCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDistributedDatabasePrivateEndpointCompartmentRequest 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 ChangeDistributedDatabasePrivateEndpointCompartmentRequest + */ + public ChangeDistributedDatabasePrivateEndpointCompartmentRequest + buildWithoutInvocationCallback() { + ChangeDistributedDatabasePrivateEndpointCompartmentRequest request = + new ChangeDistributedDatabasePrivateEndpointCompartmentRequest(); + request.changeDistributedDatabasePrivateEndpointCompartmentDetails = + changeDistributedDatabasePrivateEndpointCompartmentDetails; + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // ChangeDistributedDatabasePrivateEndpointCompartmentRequest(changeDistributedDatabasePrivateEndpointCompartmentDetails, distributedDatabasePrivateEndpointId, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeDistributedDatabasePrivateEndpointCompartmentDetails( + changeDistributedDatabasePrivateEndpointCompartmentDetails) + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeDistributedDatabasePrivateEndpointCompartmentDetails=") + .append( + String.valueOf( + this.changeDistributedDatabasePrivateEndpointCompartmentDetails)); + sb.append(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentRequest)) { + return false; + } + + ChangeDistributedDatabasePrivateEndpointCompartmentRequest other = + (ChangeDistributedDatabasePrivateEndpointCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeDistributedDatabasePrivateEndpointCompartmentDetails, + other.changeDistributedDatabasePrivateEndpointCompartmentDetails) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeDistributedDatabasePrivateEndpointCompartmentDetails == null + ? 43 + : this.changeDistributedDatabasePrivateEndpointCompartmentDetails + .hashCode()); + result = + (result * PRIME) + + (this.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java new file mode 100644 index 00000000000..17a548ea25a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java @@ -0,0 +1,367 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ChangeDistributedDbBackupConfigRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDbBackupConfigRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDbBackupConfigDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Details of the DistributedDbBackupConfig for the Globally distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + changeDistributedDbBackupConfigDetails; + + /** Details of the DistributedDbBackupConfig for the Globally distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + getChangeDistributedDbBackupConfigDetails() { + return changeDistributedDbBackupConfigDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + getBody$() { + return changeDistributedDbBackupConfigDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDistributedDbBackupConfigRequest, + com.oracle.bmc.distributeddatabasev26.model + .ChangeDistributedDbBackupConfigDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** Details of the DistributedDbBackupConfig for the Globally distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + changeDistributedDbBackupConfigDetails = null; + + /** + * Details of the DistributedDbBackupConfig for the Globally distributed database. + * + * @param changeDistributedDbBackupConfigDetails the value to set + * @return this builder instance + */ + public Builder changeDistributedDbBackupConfigDetails( + com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + changeDistributedDbBackupConfigDetails) { + this.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDistributedDbBackupConfigRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + changeDistributedDbBackupConfigDetails(o.getChangeDistributedDbBackupConfigDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDistributedDbBackupConfigRequest 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 ChangeDistributedDbBackupConfigRequest + */ + public ChangeDistributedDbBackupConfigRequest build() { + ChangeDistributedDbBackupConfigRequest 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.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails + body) { + changeDistributedDbBackupConfigDetails(body); + return this; + } + + /** + * Build the instance of ChangeDistributedDbBackupConfigRequest 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 ChangeDistributedDbBackupConfigRequest + */ + public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { + ChangeDistributedDbBackupConfigRequest request = + new ChangeDistributedDbBackupConfigRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeDistributedDbBackupConfigRequest(distributedDatabaseId, + // changeDistributedDbBackupConfigDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabaseId(distributedDatabaseId) + .changeDistributedDbBackupConfigDetails(changeDistributedDbBackupConfigDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",changeDistributedDbBackupConfigDetails=") + .append(String.valueOf(this.changeDistributedDbBackupConfigDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDbBackupConfigRequest)) { + return false; + } + + ChangeDistributedDbBackupConfigRequest other = (ChangeDistributedDbBackupConfigRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.changeDistributedDbBackupConfigDetails, + other.changeDistributedDbBackupConfigDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.changeDistributedDbBackupConfigDetails == null + ? 43 + : this.changeDistributedDbBackupConfigDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java new file mode 100644 index 00000000000..1e052af64b7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java @@ -0,0 +1,391 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The payload for configuring autoResourceManagement for autonomous distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + configureDistributedAutonomousDatabaseAutoResourceManagementDetails; + + /** The payload for configuring autoResourceManagement for autonomous distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails() { + return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + getBody$() { + return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * The payload for configuring autoResourceManagement for autonomous distributed database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + configureDistributedAutonomousDatabaseAutoResourceManagementDetails = null; + + /** + * The payload for configuring autoResourceManagement for autonomous distributed database. + * + * @param configureDistributedAutonomousDatabaseAutoResourceManagementDetails the value to + * set + * @return this builder instance + */ + public Builder configureDistributedAutonomousDatabaseAutoResourceManagementDetails( + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + configureDistributedAutonomousDatabaseAutoResourceManagementDetails) { + this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails = + configureDistributedAutonomousDatabaseAutoResourceManagementDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + configureDistributedAutonomousDatabaseAutoResourceManagementDetails( + o.getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + * 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 ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + */ + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest build() { + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest 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.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails + body) { + configureDistributedAutonomousDatabaseAutoResourceManagementDetails(body); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + * 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 ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + */ + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + buildWithoutInvocationCallback() { + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request = + new ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.configureDistributedAutonomousDatabaseAutoResourceManagementDetails = + configureDistributedAutonomousDatabaseAutoResourceManagementDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest(distributedAutonomousDatabaseId, configureDistributedAutonomousDatabaseAutoResourceManagementDetails, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .configureDistributedAutonomousDatabaseAutoResourceManagementDetails( + configureDistributedAutonomousDatabaseAutoResourceManagementDetails) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",configureDistributedAutonomousDatabaseAutoResourceManagementDetails=") + .append( + String.valueOf( + this + .configureDistributedAutonomousDatabaseAutoResourceManagementDetails)); + 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 ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest other = + (ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails, + other.configureDistributedAutonomousDatabaseAutoResourceManagementDetails) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails + == null + ? 43 + : this + .configureDistributedAutonomousDatabaseAutoResourceManagementDetails + .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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java new file mode 100644 index 00000000000..10aa868b238 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseGsmWalletRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseGsmWalletRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails> { + + /** Details to configure wallets on GSM instances for the distributed autonomous database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + configureDistributedAutonomousDatabaseGsmWalletDetails; + + /** Details to configure wallets on GSM instances for the distributed autonomous database. */ + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + getConfigureDistributedAutonomousDatabaseGsmWalletDetails() { + return configureDistributedAutonomousDatabaseGsmWalletDetails; + } + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + getBody$() { + return configureDistributedAutonomousDatabaseGsmWalletDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedAutonomousDatabaseGsmWalletRequest, + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details to configure wallets on GSM instances for the distributed autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + configureDistributedAutonomousDatabaseGsmWalletDetails = null; + + /** + * Details to configure wallets on GSM instances for the distributed autonomous database. + * + * @param configureDistributedAutonomousDatabaseGsmWalletDetails the value to set + * @return this builder instance + */ + public Builder configureDistributedAutonomousDatabaseGsmWalletDetails( + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + configureDistributedAutonomousDatabaseGsmWalletDetails) { + this.configureDistributedAutonomousDatabaseGsmWalletDetails = + configureDistributedAutonomousDatabaseGsmWalletDetails; + return this; + } + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmWalletRequest o) { + configureDistributedAutonomousDatabaseGsmWalletDetails( + o.getConfigureDistributedAutonomousDatabaseGsmWalletDetails()); + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseGsmWalletRequest 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 ConfigureDistributedAutonomousDatabaseGsmWalletRequest + */ + public ConfigureDistributedAutonomousDatabaseGsmWalletRequest build() { + ConfigureDistributedAutonomousDatabaseGsmWalletRequest 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.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmWalletDetails + body) { + configureDistributedAutonomousDatabaseGsmWalletDetails(body); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseGsmWalletRequest 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 ConfigureDistributedAutonomousDatabaseGsmWalletRequest + */ + public ConfigureDistributedAutonomousDatabaseGsmWalletRequest + buildWithoutInvocationCallback() { + ConfigureDistributedAutonomousDatabaseGsmWalletRequest request = + new ConfigureDistributedAutonomousDatabaseGsmWalletRequest(); + request.configureDistributedAutonomousDatabaseGsmWalletDetails = + configureDistributedAutonomousDatabaseGsmWalletDetails; + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // ConfigureDistributedAutonomousDatabaseGsmWalletRequest(configureDistributedAutonomousDatabaseGsmWalletDetails, distributedAutonomousDatabaseId, 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() + .configureDistributedAutonomousDatabaseGsmWalletDetails( + configureDistributedAutonomousDatabaseGsmWalletDetails) + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",configureDistributedAutonomousDatabaseGsmWalletDetails=") + .append( + String.valueOf( + this.configureDistributedAutonomousDatabaseGsmWalletDetails)); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 ConfigureDistributedAutonomousDatabaseGsmWalletRequest)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmWalletRequest other = + (ConfigureDistributedAutonomousDatabaseGsmWalletRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.configureDistributedAutonomousDatabaseGsmWalletDetails, + other.configureDistributedAutonomousDatabaseGsmWalletDetails) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.configureDistributedAutonomousDatabaseGsmWalletDetails == null + ? 43 + : this.configureDistributedAutonomousDatabaseGsmWalletDetails + .hashCode()); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java new file mode 100644 index 00000000000..ce2897782d0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java @@ -0,0 +1,382 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseGsmsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseGsmsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails> { + + /** Details to configure the new GSM instances for the distributed autonomous database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + configureDistributedAutonomousDatabaseGsmsDetails; + + /** Details to configure the new GSM instances for the distributed autonomous database. */ + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + getConfigureDistributedAutonomousDatabaseGsmsDetails() { + return configureDistributedAutonomousDatabaseGsmsDetails; + } + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + getBody$() { + return configureDistributedAutonomousDatabaseGsmsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedAutonomousDatabaseGsmsRequest, + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to configure the new GSM instances for the distributed autonomous database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + configureDistributedAutonomousDatabaseGsmsDetails = null; + + /** + * Details to configure the new GSM instances for the distributed autonomous database. + * + * @param configureDistributedAutonomousDatabaseGsmsDetails the value to set + * @return this builder instance + */ + public Builder configureDistributedAutonomousDatabaseGsmsDetails( + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + configureDistributedAutonomousDatabaseGsmsDetails) { + this.configureDistributedAutonomousDatabaseGsmsDetails = + configureDistributedAutonomousDatabaseGsmsDetails; + return this; + } + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsRequest o) { + configureDistributedAutonomousDatabaseGsmsDetails( + o.getConfigureDistributedAutonomousDatabaseGsmsDetails()); + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseGsmsRequest 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 ConfigureDistributedAutonomousDatabaseGsmsRequest + */ + public ConfigureDistributedAutonomousDatabaseGsmsRequest build() { + ConfigureDistributedAutonomousDatabaseGsmsRequest 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.distributeddatabasev26.model + .ConfigureDistributedAutonomousDatabaseGsmsDetails + body) { + configureDistributedAutonomousDatabaseGsmsDetails(body); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseGsmsRequest 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 ConfigureDistributedAutonomousDatabaseGsmsRequest + */ + public ConfigureDistributedAutonomousDatabaseGsmsRequest buildWithoutInvocationCallback() { + ConfigureDistributedAutonomousDatabaseGsmsRequest request = + new ConfigureDistributedAutonomousDatabaseGsmsRequest(); + request.configureDistributedAutonomousDatabaseGsmsDetails = + configureDistributedAutonomousDatabaseGsmsDetails; + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // ConfigureDistributedAutonomousDatabaseGsmsRequest(configureDistributedAutonomousDatabaseGsmsDetails, distributedAutonomousDatabaseId, 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() + .configureDistributedAutonomousDatabaseGsmsDetails( + configureDistributedAutonomousDatabaseGsmsDetails) + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",configureDistributedAutonomousDatabaseGsmsDetails=") + .append(String.valueOf(this.configureDistributedAutonomousDatabaseGsmsDetails)); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 ConfigureDistributedAutonomousDatabaseGsmsRequest)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmsRequest other = + (ConfigureDistributedAutonomousDatabaseGsmsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.configureDistributedAutonomousDatabaseGsmsDetails, + other.configureDistributedAutonomousDatabaseGsmsDetails) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.configureDistributedAutonomousDatabaseGsmsDetails == null + ? 43 + : this.configureDistributedAutonomousDatabaseGsmsDetails + .hashCode()); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java new file mode 100644 index 00000000000..345da5269c0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java @@ -0,0 +1,400 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedAutonomousDatabaseShardingRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseShardingRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for + * USER-defined sharding type. + */ + private Boolean isRebalanceRequired; + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for + * USER-defined sharding type. + */ + public Boolean getIsRebalanceRequired() { + return isRebalanceRequired; + } + /** The ID of the cluster certificate. */ + private String certificateId; + + /** The ID of the cluster certificate. */ + public String getCertificateId() { + return certificateId; + } + /** The ID of the Ca Bundle. */ + private String caBundleId; + + /** The ID of the Ca Bundle. */ + public String getCaBundleId() { + return caBundleId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedAutonomousDatabaseShardingRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable + * for USER-defined sharding type. + */ + private Boolean isRebalanceRequired = null; + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable + * for USER-defined sharding type. + * + * @param isRebalanceRequired the value to set + * @return this builder instance + */ + public Builder isRebalanceRequired(Boolean isRebalanceRequired) { + this.isRebalanceRequired = isRebalanceRequired; + return this; + } + + /** The ID of the cluster certificate. */ + private String certificateId = null; + + /** + * The ID of the cluster certificate. + * + * @param certificateId the value to set + * @return this builder instance + */ + public Builder certificateId(String certificateId) { + this.certificateId = certificateId; + return this; + } + + /** The ID of the Ca Bundle. */ + private String caBundleId = null; + + /** + * The ID of the Ca Bundle. + * + * @param caBundleId the value to set + * @return this builder instance + */ + public Builder caBundleId(String caBundleId) { + this.caBundleId = caBundleId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedAutonomousDatabaseShardingRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + isRebalanceRequired(o.getIsRebalanceRequired()); + certificateId(o.getCertificateId()); + caBundleId(o.getCaBundleId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseShardingRequest 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 ConfigureDistributedAutonomousDatabaseShardingRequest + */ + public ConfigureDistributedAutonomousDatabaseShardingRequest build() { + ConfigureDistributedAutonomousDatabaseShardingRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ConfigureDistributedAutonomousDatabaseShardingRequest 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 ConfigureDistributedAutonomousDatabaseShardingRequest + */ + public ConfigureDistributedAutonomousDatabaseShardingRequest + buildWithoutInvocationCallback() { + ConfigureDistributedAutonomousDatabaseShardingRequest request = + new ConfigureDistributedAutonomousDatabaseShardingRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.isRebalanceRequired = isRebalanceRequired; + request.certificateId = certificateId; + request.caBundleId = caBundleId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // ConfigureDistributedAutonomousDatabaseShardingRequest(distributedAutonomousDatabaseId, isRebalanceRequired, certificateId, caBundleId, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .isRebalanceRequired(isRebalanceRequired) + .certificateId(certificateId) + .caBundleId(caBundleId) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",isRebalanceRequired=").append(String.valueOf(this.isRebalanceRequired)); + sb.append(",certificateId=").append(String.valueOf(this.certificateId)); + sb.append(",caBundleId=").append(String.valueOf(this.caBundleId)); + 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 ConfigureDistributedAutonomousDatabaseShardingRequest)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseShardingRequest other = + (ConfigureDistributedAutonomousDatabaseShardingRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.isRebalanceRequired, other.isRebalanceRequired) + && java.util.Objects.equals(this.certificateId, other.certificateId) + && java.util.Objects.equals(this.caBundleId, other.caBundleId) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.isRebalanceRequired == null + ? 43 + : this.isRebalanceRequired.hashCode()); + result = + (result * PRIME) + + (this.certificateId == null ? 43 : this.certificateId.hashCode()); + result = (result * PRIME) + (this.caBundleId == null ? 43 : this.caBundleId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java new file mode 100644 index 00000000000..00bbcd76a6f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedDatabaseAutoResourceManagementRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseAutoResourceManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The payload for configuring autoResourceManagement for distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + configureDistributedDatabaseAutoResourceManagementDetails; + + /** The payload for configuring autoResourceManagement for distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + getConfigureDistributedDatabaseAutoResourceManagementDetails() { + return configureDistributedDatabaseAutoResourceManagementDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + getBody$() { + return configureDistributedDatabaseAutoResourceManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The payload for configuring autoResourceManagement for distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + configureDistributedDatabaseAutoResourceManagementDetails = null; + + /** + * The payload for configuring autoResourceManagement for distributed database. + * + * @param configureDistributedDatabaseAutoResourceManagementDetails the value to set + * @return this builder instance + */ + public Builder configureDistributedDatabaseAutoResourceManagementDetails( + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + configureDistributedDatabaseAutoResourceManagementDetails) { + this.configureDistributedDatabaseAutoResourceManagementDetails = + configureDistributedDatabaseAutoResourceManagementDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + configureDistributedDatabaseAutoResourceManagementDetails( + o.getConfigureDistributedDatabaseAutoResourceManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedDatabaseAutoResourceManagementRequest 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 ConfigureDistributedDatabaseAutoResourceManagementRequest + */ + public ConfigureDistributedDatabaseAutoResourceManagementRequest build() { + ConfigureDistributedDatabaseAutoResourceManagementRequest 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.distributeddatabasev26.model + .ConfigureDistributedDatabaseAutoResourceManagementDetails + body) { + configureDistributedDatabaseAutoResourceManagementDetails(body); + return this; + } + + /** + * Build the instance of ConfigureDistributedDatabaseAutoResourceManagementRequest 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 ConfigureDistributedDatabaseAutoResourceManagementRequest + */ + public ConfigureDistributedDatabaseAutoResourceManagementRequest + buildWithoutInvocationCallback() { + ConfigureDistributedDatabaseAutoResourceManagementRequest request = + new ConfigureDistributedDatabaseAutoResourceManagementRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.configureDistributedDatabaseAutoResourceManagementDetails = + configureDistributedDatabaseAutoResourceManagementDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ConfigureDistributedDatabaseAutoResourceManagementRequest(distributedDatabaseId, + // configureDistributedDatabaseAutoResourceManagementDetails, 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() + .distributedDatabaseId(distributedDatabaseId) + .configureDistributedDatabaseAutoResourceManagementDetails( + configureDistributedDatabaseAutoResourceManagementDetails) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",configureDistributedDatabaseAutoResourceManagementDetails=") + .append( + String.valueOf( + this.configureDistributedDatabaseAutoResourceManagementDetails)); + 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 ConfigureDistributedDatabaseAutoResourceManagementRequest)) { + return false; + } + + ConfigureDistributedDatabaseAutoResourceManagementRequest other = + (ConfigureDistributedDatabaseAutoResourceManagementRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.configureDistributedDatabaseAutoResourceManagementDetails, + other.configureDistributedDatabaseAutoResourceManagementDetails) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.configureDistributedDatabaseAutoResourceManagementDetails == null + ? 43 + : this.configureDistributedDatabaseAutoResourceManagementDetails + .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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java new file mode 100644 index 00000000000..f25fb53387d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedDatabaseGsmsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseGsmsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseGsmsDetails> { + + /** Details to configure the new GSM instances for the distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + configureDistributedDatabaseGsmsDetails; + + /** Details to configure the new GSM instances for the distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + getConfigureDistributedDatabaseGsmsDetails() { + return configureDistributedDatabaseGsmsDetails; + } + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + getBody$() { + return configureDistributedDatabaseGsmsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedDatabaseGsmsRequest, + com.oracle.bmc.distributeddatabasev26.model + .ConfigureDistributedDatabaseGsmsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to configure the new GSM instances for the distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + configureDistributedDatabaseGsmsDetails = null; + + /** + * Details to configure the new GSM instances for the distributed database. + * + * @param configureDistributedDatabaseGsmsDetails the value to set + * @return this builder instance + */ + public Builder configureDistributedDatabaseGsmsDetails( + com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + configureDistributedDatabaseGsmsDetails) { + this.configureDistributedDatabaseGsmsDetails = configureDistributedDatabaseGsmsDetails; + return this; + } + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedDatabaseGsmsRequest o) { + configureDistributedDatabaseGsmsDetails(o.getConfigureDistributedDatabaseGsmsDetails()); + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedDatabaseGsmsRequest 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 ConfigureDistributedDatabaseGsmsRequest + */ + public ConfigureDistributedDatabaseGsmsRequest build() { + ConfigureDistributedDatabaseGsmsRequest 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.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails + body) { + configureDistributedDatabaseGsmsDetails(body); + return this; + } + + /** + * Build the instance of ConfigureDistributedDatabaseGsmsRequest 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 ConfigureDistributedDatabaseGsmsRequest + */ + public ConfigureDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() { + ConfigureDistributedDatabaseGsmsRequest request = + new ConfigureDistributedDatabaseGsmsRequest(); + request.configureDistributedDatabaseGsmsDetails = + configureDistributedDatabaseGsmsDetails; + request.distributedDatabaseId = distributedDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ConfigureDistributedDatabaseGsmsRequest(configureDistributedDatabaseGsmsDetails, + // distributedDatabaseId, 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() + .configureDistributedDatabaseGsmsDetails(configureDistributedDatabaseGsmsDetails) + .distributedDatabaseId(distributedDatabaseId) + .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(",configureDistributedDatabaseGsmsDetails=") + .append(String.valueOf(this.configureDistributedDatabaseGsmsDetails)); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + 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 ConfigureDistributedDatabaseGsmsRequest)) { + return false; + } + + ConfigureDistributedDatabaseGsmsRequest other = (ConfigureDistributedDatabaseGsmsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.configureDistributedDatabaseGsmsDetails, + other.configureDistributedDatabaseGsmsDetails) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && 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.configureDistributedDatabaseGsmsDetails == null + ? 43 + : this.configureDistributedDatabaseGsmsDetails.hashCode()); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java new file mode 100644 index 00000000000..d70249f817d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java @@ -0,0 +1,340 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ConfigureDistributedDatabaseShardingRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseShardingRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for + * USER-defined sharding type. + */ + private Boolean isRebalanceRequired; + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for + * USER-defined sharding type. + */ + public Boolean getIsRebalanceRequired() { + return isRebalanceRequired; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfigureDistributedDatabaseShardingRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable + * for USER-defined sharding type. + */ + private Boolean isRebalanceRequired = null; + + /** + * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable + * for USER-defined sharding type. + * + * @param isRebalanceRequired the value to set + * @return this builder instance + */ + public Builder isRebalanceRequired(Boolean isRebalanceRequired) { + this.isRebalanceRequired = isRebalanceRequired; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + isRebalanceRequired(o.getIsRebalanceRequired()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfigureDistributedDatabaseShardingRequest 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 ConfigureDistributedDatabaseShardingRequest + */ + public ConfigureDistributedDatabaseShardingRequest build() { + ConfigureDistributedDatabaseShardingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ConfigureDistributedDatabaseShardingRequest 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 ConfigureDistributedDatabaseShardingRequest + */ + public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallback() { + ConfigureDistributedDatabaseShardingRequest request = + new ConfigureDistributedDatabaseShardingRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.isRebalanceRequired = isRebalanceRequired; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ConfigureDistributedDatabaseShardingRequest(distributedDatabaseId, + // isRebalanceRequired, 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() + .distributedDatabaseId(distributedDatabaseId) + .isRebalanceRequired(isRebalanceRequired) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",isRebalanceRequired=").append(String.valueOf(this.isRebalanceRequired)); + 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 ConfigureDistributedDatabaseShardingRequest)) { + return false; + } + + ConfigureDistributedDatabaseShardingRequest other = + (ConfigureDistributedDatabaseShardingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.isRebalanceRequired, other.isRebalanceRequired) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.isRebalanceRequired == null + ? 43 + : this.isRebalanceRequired.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..31203fe3340 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,299 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * CreateDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedAutonomousDatabaseDetails> { + + /** Details of the Globally distributed autonomous database to be created. */ + private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails + createDistributedAutonomousDatabaseDetails; + + /** Details of the Globally distributed autonomous database to be created. */ + public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails + getCreateDistributedAutonomousDatabaseDetails() { + return createDistributedAutonomousDatabaseDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails + getBody$() { + return createDistributedAutonomousDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDistributedAutonomousDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedAutonomousDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details of the Globally distributed autonomous database to be created. */ + private com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedAutonomousDatabaseDetails + createDistributedAutonomousDatabaseDetails = null; + + /** + * Details of the Globally distributed autonomous database to be created. + * + * @param createDistributedAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder createDistributedAutonomousDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedAutonomousDatabaseDetails + createDistributedAutonomousDatabaseDetails) { + this.createDistributedAutonomousDatabaseDetails = + createDistributedAutonomousDatabaseDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { + createDistributedAutonomousDatabaseDetails( + o.getCreateDistributedAutonomousDatabaseDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDistributedAutonomousDatabaseRequest 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 CreateDistributedAutonomousDatabaseRequest + */ + public CreateDistributedAutonomousDatabaseRequest build() { + CreateDistributedAutonomousDatabaseRequest 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.distributeddatabasev26.model + .CreateDistributedAutonomousDatabaseDetails + body) { + createDistributedAutonomousDatabaseDetails(body); + return this; + } + + /** + * Build the instance of CreateDistributedAutonomousDatabaseRequest 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 CreateDistributedAutonomousDatabaseRequest + */ + public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + CreateDistributedAutonomousDatabaseRequest request = + new CreateDistributedAutonomousDatabaseRequest(); + request.createDistributedAutonomousDatabaseDetails = + createDistributedAutonomousDatabaseDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // CreateDistributedAutonomousDatabaseRequest(createDistributedAutonomousDatabaseDetails, 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() + .createDistributedAutonomousDatabaseDetails( + createDistributedAutonomousDatabaseDetails) + .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(",createDistributedAutonomousDatabaseDetails=") + .append(String.valueOf(this.createDistributedAutonomousDatabaseDetails)); + 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 CreateDistributedAutonomousDatabaseRequest)) { + return false; + } + + CreateDistributedAutonomousDatabaseRequest other = + (CreateDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDistributedAutonomousDatabaseDetails, + other.createDistributedAutonomousDatabaseDetails) + && 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.createDistributedAutonomousDatabaseDetails == null + ? 43 + : this.createDistributedAutonomousDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java new file mode 100644 index 00000000000..eefd3090350 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * CreateDistributedDatabasePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedDatabasePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails> { + + /** Details of DistributedDatabasePrivateEndpoint to be created. */ + private com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + createDistributedDatabasePrivateEndpointDetails; + + /** Details of DistributedDatabasePrivateEndpoint to be created. */ + public com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + getCreateDistributedDatabasePrivateEndpointDetails() { + return createDistributedDatabasePrivateEndpointDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + getBody$() { + return createDistributedDatabasePrivateEndpointDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDistributedDatabasePrivateEndpointRequest, + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details of DistributedDatabasePrivateEndpoint to be created. */ + private com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + createDistributedDatabasePrivateEndpointDetails = null; + + /** + * Details of DistributedDatabasePrivateEndpoint to be created. + * + * @param createDistributedDatabasePrivateEndpointDetails the value to set + * @return this builder instance + */ + public Builder createDistributedDatabasePrivateEndpointDetails( + com.oracle.bmc.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + createDistributedDatabasePrivateEndpointDetails) { + this.createDistributedDatabasePrivateEndpointDetails = + createDistributedDatabasePrivateEndpointDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { + createDistributedDatabasePrivateEndpointDetails( + o.getCreateDistributedDatabasePrivateEndpointDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDistributedDatabasePrivateEndpointRequest 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 CreateDistributedDatabasePrivateEndpointRequest + */ + public CreateDistributedDatabasePrivateEndpointRequest build() { + CreateDistributedDatabasePrivateEndpointRequest 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.distributeddatabasev26.model + .CreateDistributedDatabasePrivateEndpointDetails + body) { + createDistributedDatabasePrivateEndpointDetails(body); + return this; + } + + /** + * Build the instance of CreateDistributedDatabasePrivateEndpointRequest 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 CreateDistributedDatabasePrivateEndpointRequest + */ + public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { + CreateDistributedDatabasePrivateEndpointRequest request = + new CreateDistributedDatabasePrivateEndpointRequest(); + request.createDistributedDatabasePrivateEndpointDetails = + createDistributedDatabasePrivateEndpointDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // CreateDistributedDatabasePrivateEndpointRequest(createDistributedDatabasePrivateEndpointDetails, 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() + .createDistributedDatabasePrivateEndpointDetails( + createDistributedDatabasePrivateEndpointDetails) + .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(",createDistributedDatabasePrivateEndpointDetails=") + .append(String.valueOf(this.createDistributedDatabasePrivateEndpointDetails)); + 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 CreateDistributedDatabasePrivateEndpointRequest)) { + return false; + } + + CreateDistributedDatabasePrivateEndpointRequest other = + (CreateDistributedDatabasePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDistributedDatabasePrivateEndpointDetails, + other.createDistributedDatabasePrivateEndpointDetails) + && 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.createDistributedDatabasePrivateEndpointDetails == null + ? 43 + : this.createDistributedDatabasePrivateEndpointDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java new file mode 100644 index 00000000000..6529bde6540 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * CreateDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { + + /** Details of the Globally distributed database to be created. */ + private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails + createDistributedDatabaseDetails; + + /** Details of the Globally distributed database to be created. */ + public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails + getCreateDistributedDatabaseDetails() { + return createDistributedDatabaseDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails getBody$() { + return createDistributedDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDistributedDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details of the Globally distributed database to be created. */ + private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails + createDistributedDatabaseDetails = null; + + /** + * Details of the Globally distributed database to be created. + * + * @param createDistributedDatabaseDetails the value to set + * @return this builder instance + */ + public Builder createDistributedDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails + createDistributedDatabaseDetails) { + this.createDistributedDatabaseDetails = createDistributedDatabaseDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDistributedDatabaseRequest o) { + createDistributedDatabaseDetails(o.getCreateDistributedDatabaseDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDistributedDatabaseRequest 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 CreateDistributedDatabaseRequest + */ + public CreateDistributedDatabaseRequest build() { + CreateDistributedDatabaseRequest 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.distributeddatabasev26.model.CreateDistributedDatabaseDetails body) { + createDistributedDatabaseDetails(body); + return this; + } + + /** + * Build the instance of CreateDistributedDatabaseRequest 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 CreateDistributedDatabaseRequest + */ + public CreateDistributedDatabaseRequest buildWithoutInvocationCallback() { + CreateDistributedDatabaseRequest request = new CreateDistributedDatabaseRequest(); + request.createDistributedDatabaseDetails = createDistributedDatabaseDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDistributedDatabaseRequest(createDistributedDatabaseDetails, 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() + .createDistributedDatabaseDetails(createDistributedDatabaseDetails) + .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(",createDistributedDatabaseDetails=") + .append(String.valueOf(this.createDistributedDatabaseDetails)); + 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 CreateDistributedDatabaseRequest)) { + return false; + } + + CreateDistributedDatabaseRequest other = (CreateDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDistributedDatabaseDetails, + other.createDistributedDatabaseDetails) + && 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.createDistributedDatabaseDetails == null + ? 43 + : this.createDistributedDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..226ddfebc39 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,301 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * DeleteDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDistributedAutonomousDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDistributedAutonomousDatabaseRequest 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 DeleteDistributedAutonomousDatabaseRequest + */ + public DeleteDistributedAutonomousDatabaseRequest build() { + DeleteDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDistributedAutonomousDatabaseRequest 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 DeleteDistributedAutonomousDatabaseRequest + */ + public DeleteDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + DeleteDistributedAutonomousDatabaseRequest request = + new DeleteDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DeleteDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedAutonomousDatabaseRequest)) { + return false; + } + + DeleteDistributedAutonomousDatabaseRequest other = + (DeleteDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java new file mode 100644 index 00000000000..e8a18057716 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * DeleteDistributedDatabasePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedDatabasePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDistributedDatabasePrivateEndpointRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDistributedDatabasePrivateEndpointRequest o) { + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDistributedDatabasePrivateEndpointRequest 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 DeleteDistributedDatabasePrivateEndpointRequest + */ + public DeleteDistributedDatabasePrivateEndpointRequest build() { + DeleteDistributedDatabasePrivateEndpointRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDistributedDatabasePrivateEndpointRequest 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 DeleteDistributedDatabasePrivateEndpointRequest + */ + public DeleteDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { + DeleteDistributedDatabasePrivateEndpointRequest request = + new DeleteDistributedDatabasePrivateEndpointRequest(); + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // DeleteDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, + // opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedDatabasePrivateEndpointRequest)) { + return false; + } + + DeleteDistributedDatabasePrivateEndpointRequest other = + (DeleteDistributedDatabasePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java new file mode 100644 index 00000000000..ca9a3d734da --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java @@ -0,0 +1,295 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * DeleteDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDistributedDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDistributedDatabaseRequest 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 DeleteDistributedDatabaseRequest + */ + public DeleteDistributedDatabaseRequest build() { + DeleteDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDistributedDatabaseRequest 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 DeleteDistributedDatabaseRequest + */ + public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { + DeleteDistributedDatabaseRequest request = new DeleteDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DeleteDistributedDatabaseRequest(distributedDatabaseId, opcRequestId, + // opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabaseId(distributedDatabaseId) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedDatabaseRequest)) { + return false; + } + + DeleteDistributedDatabaseRequest other = (DeleteDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java new file mode 100644 index 00000000000..6629083a70e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GenerateDistributedAutonomousDatabaseWalletRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GenerateDistributedAutonomousDatabaseWalletRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** Details for generating Globally distributed autonomous database wallet. */ + private com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + generateDistributedAutonomousDatabaseWalletDetails; + + /** Details for generating Globally distributed autonomous database wallet. */ + public com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + getGenerateDistributedAutonomousDatabaseWalletDetails() { + return generateDistributedAutonomousDatabaseWalletDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + getBody$() { + return generateDistributedAutonomousDatabaseWalletDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateDistributedAutonomousDatabaseWalletRequest, + com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** Details for generating Globally distributed autonomous database wallet. */ + private com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + generateDistributedAutonomousDatabaseWalletDetails = null; + + /** + * Details for generating Globally distributed autonomous database wallet. + * + * @param generateDistributedAutonomousDatabaseWalletDetails the value to set + * @return this builder instance + */ + public Builder generateDistributedAutonomousDatabaseWalletDetails( + com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + generateDistributedAutonomousDatabaseWalletDetails) { + this.generateDistributedAutonomousDatabaseWalletDetails = + generateDistributedAutonomousDatabaseWalletDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateDistributedAutonomousDatabaseWalletRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + generateDistributedAutonomousDatabaseWalletDetails( + o.getGenerateDistributedAutonomousDatabaseWalletDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateDistributedAutonomousDatabaseWalletRequest 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 GenerateDistributedAutonomousDatabaseWalletRequest + */ + public GenerateDistributedAutonomousDatabaseWalletRequest build() { + GenerateDistributedAutonomousDatabaseWalletRequest 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.distributeddatabasev26.model + .GenerateDistributedAutonomousDatabaseWalletDetails + body) { + generateDistributedAutonomousDatabaseWalletDetails(body); + return this; + } + + /** + * Build the instance of GenerateDistributedAutonomousDatabaseWalletRequest 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 GenerateDistributedAutonomousDatabaseWalletRequest + */ + public GenerateDistributedAutonomousDatabaseWalletRequest buildWithoutInvocationCallback() { + GenerateDistributedAutonomousDatabaseWalletRequest request = + new GenerateDistributedAutonomousDatabaseWalletRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.generateDistributedAutonomousDatabaseWalletDetails = + generateDistributedAutonomousDatabaseWalletDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // GenerateDistributedAutonomousDatabaseWalletRequest(distributedAutonomousDatabaseId, + // generateDistributedAutonomousDatabaseWalletDetails, opcRequestId, ifMatch, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .generateDistributedAutonomousDatabaseWalletDetails( + generateDistributedAutonomousDatabaseWalletDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",generateDistributedAutonomousDatabaseWalletDetails=") + .append(String.valueOf(this.generateDistributedAutonomousDatabaseWalletDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletRequest)) { + return false; + } + + GenerateDistributedAutonomousDatabaseWalletRequest other = + (GenerateDistributedAutonomousDatabaseWalletRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.generateDistributedAutonomousDatabaseWalletDetails, + other.generateDistributedAutonomousDatabaseWalletDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.generateDistributedAutonomousDatabaseWalletDetails == null + ? 43 + : this.generateDistributedAutonomousDatabaseWalletDetails + .hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java new file mode 100644 index 00000000000..a7ef7acfa13 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java @@ -0,0 +1,371 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GenerateDistributedDatabaseWalletRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GenerateDistributedDatabaseWalletRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedDatabaseWalletDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Details for generating Globally distributed database wallet. */ + private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + generateDistributedDatabaseWalletDetails; + + /** Details for generating Globally distributed database wallet. */ + public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + getGenerateDistributedDatabaseWalletDetails() { + return generateDistributedDatabaseWalletDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + getBody$() { + return generateDistributedDatabaseWalletDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateDistributedDatabaseWalletRequest, + com.oracle.bmc.distributeddatabasev26.model + .GenerateDistributedDatabaseWalletDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** Details for generating Globally distributed database wallet. */ + private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + generateDistributedDatabaseWalletDetails = null; + + /** + * Details for generating Globally distributed database wallet. + * + * @param generateDistributedDatabaseWalletDetails the value to set + * @return this builder instance + */ + public Builder generateDistributedDatabaseWalletDetails( + com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + generateDistributedDatabaseWalletDetails) { + this.generateDistributedDatabaseWalletDetails = + generateDistributedDatabaseWalletDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateDistributedDatabaseWalletRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + generateDistributedDatabaseWalletDetails( + o.getGenerateDistributedDatabaseWalletDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateDistributedDatabaseWalletRequest 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 GenerateDistributedDatabaseWalletRequest + */ + public GenerateDistributedDatabaseWalletRequest build() { + GenerateDistributedDatabaseWalletRequest 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.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails + body) { + generateDistributedDatabaseWalletDetails(body); + return this; + } + + /** + * Build the instance of GenerateDistributedDatabaseWalletRequest 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 GenerateDistributedDatabaseWalletRequest + */ + public GenerateDistributedDatabaseWalletRequest buildWithoutInvocationCallback() { + GenerateDistributedDatabaseWalletRequest request = + new GenerateDistributedDatabaseWalletRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.generateDistributedDatabaseWalletDetails = + generateDistributedDatabaseWalletDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateDistributedDatabaseWalletRequest(distributedDatabaseId, + // generateDistributedDatabaseWalletDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabaseId(distributedDatabaseId) + .generateDistributedDatabaseWalletDetails(generateDistributedDatabaseWalletDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",generateDistributedDatabaseWalletDetails=") + .append(String.valueOf(this.generateDistributedDatabaseWalletDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedDatabaseWalletRequest)) { + return false; + } + + GenerateDistributedDatabaseWalletRequest other = + (GenerateDistributedDatabaseWalletRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.generateDistributedDatabaseWalletDetails, + other.generateDistributedDatabaseWalletDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.generateDistributedDatabaseWalletDetails == null + ? 43 + : this.generateDistributedDatabaseWalletDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java new file mode 100644 index 00000000000..9a766977fc7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java @@ -0,0 +1,207 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedAutonomousDatabaseRaftMetricRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseRaftMetricRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedAutonomousDatabaseRaftMetricRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedAutonomousDatabaseRaftMetricRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest 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 GetDistributedAutonomousDatabaseRaftMetricRequest + */ + public GetDistributedAutonomousDatabaseRaftMetricRequest build() { + GetDistributedAutonomousDatabaseRaftMetricRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest 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 GetDistributedAutonomousDatabaseRaftMetricRequest + */ + public GetDistributedAutonomousDatabaseRaftMetricRequest buildWithoutInvocationCallback() { + GetDistributedAutonomousDatabaseRaftMetricRequest request = + new GetDistributedAutonomousDatabaseRaftMetricRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRequestId = opcRequestId; + return request; + // new + // GetDistributedAutonomousDatabaseRaftMetricRequest(distributedAutonomousDatabaseId, + // 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 GetDistributedAutonomousDatabaseRaftMetricRequest)) { + return false; + } + + GetDistributedAutonomousDatabaseRaftMetricRequest other = + (GetDistributedAutonomousDatabaseRaftMetricRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..72c3d3c5a59 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,276 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata; + + /** Comma-separated argument names for which metadata should be retrieved. */ + public String getMetadata() { + return metadata; + } + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedAutonomousDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata = null; + + /** + * Comma-separated argument names for which metadata should be retrieved. + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + metadata(o.getMetadata()); + ifNoneMatch(o.getIfNoneMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRequest 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 GetDistributedAutonomousDatabaseRequest + */ + public GetDistributedAutonomousDatabaseRequest build() { + GetDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRequest 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 GetDistributedAutonomousDatabaseRequest + */ + public GetDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + GetDistributedAutonomousDatabaseRequest request = + new GetDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.metadata = metadata; + request.ifNoneMatch = ifNoneMatch; + request.opcRequestId = opcRequestId; + return request; + // new GetDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // metadata, ifNoneMatch, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .metadata(metadata) + .ifNoneMatch(ifNoneMatch) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + 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 GetDistributedAutonomousDatabaseRequest)) { + return false; + } + + GetDistributedAutonomousDatabaseRequest other = (GetDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java new file mode 100644 index 00000000000..7cd9616fe68 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedAutonomousDatabaseRuChangeLogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseRuChangeLogRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The source shard name to filter RU change log entries. */ + private String sourceShardName; + + /** The source shard name to filter RU change log entries. */ + public String getSourceShardName() { + return sourceShardName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedAutonomousDatabaseRuChangeLogRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** The source shard name to filter RU change log entries. */ + private String sourceShardName = null; + + /** + * The source shard name to filter RU change log entries. + * + * @param sourceShardName the value to set + * @return this builder instance + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedAutonomousDatabaseRuChangeLogRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + sourceShardName(o.getSourceShardName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRuChangeLogRequest 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 GetDistributedAutonomousDatabaseRuChangeLogRequest + */ + public GetDistributedAutonomousDatabaseRuChangeLogRequest build() { + GetDistributedAutonomousDatabaseRuChangeLogRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedAutonomousDatabaseRuChangeLogRequest 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 GetDistributedAutonomousDatabaseRuChangeLogRequest + */ + public GetDistributedAutonomousDatabaseRuChangeLogRequest buildWithoutInvocationCallback() { + GetDistributedAutonomousDatabaseRuChangeLogRequest request = + new GetDistributedAutonomousDatabaseRuChangeLogRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.sourceShardName = sourceShardName; + request.opcRequestId = opcRequestId; + return request; + // new + // GetDistributedAutonomousDatabaseRuChangeLogRequest(distributedAutonomousDatabaseId, + // sourceShardName, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .sourceShardName(sourceShardName) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",sourceShardName=").append(String.valueOf(this.sourceShardName)); + 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 GetDistributedAutonomousDatabaseRuChangeLogRequest)) { + return false; + } + + GetDistributedAutonomousDatabaseRuChangeLogRequest other = + (GetDistributedAutonomousDatabaseRuChangeLogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java new file mode 100644 index 00000000000..5840a8934ce --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java @@ -0,0 +1,253 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedDatabasePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabasePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedDatabasePrivateEndpointRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedDatabasePrivateEndpointRequest o) { + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + ifNoneMatch(o.getIfNoneMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedDatabasePrivateEndpointRequest 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 GetDistributedDatabasePrivateEndpointRequest + */ + public GetDistributedDatabasePrivateEndpointRequest build() { + GetDistributedDatabasePrivateEndpointRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedDatabasePrivateEndpointRequest 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 GetDistributedDatabasePrivateEndpointRequest + */ + public GetDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { + GetDistributedDatabasePrivateEndpointRequest request = + new GetDistributedDatabasePrivateEndpointRequest(); + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.ifNoneMatch = ifNoneMatch; + request.opcRequestId = opcRequestId; + return request; + // new + // GetDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, + // ifNoneMatch, 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() + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .ifNoneMatch(ifNoneMatch) + .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(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + 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 GetDistributedDatabasePrivateEndpointRequest)) { + return false; + } + + GetDistributedDatabasePrivateEndpointRequest other = + (GetDistributedDatabasePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java new file mode 100644 index 00000000000..311df699b08 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedDatabaseRaftMetricRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseRaftMetricRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedDatabaseRaftMetricRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedDatabaseRaftMetricRequest 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 GetDistributedDatabaseRaftMetricRequest + */ + public GetDistributedDatabaseRaftMetricRequest build() { + GetDistributedDatabaseRaftMetricRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedDatabaseRaftMetricRequest 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 GetDistributedDatabaseRaftMetricRequest + */ + public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() { + GetDistributedDatabaseRaftMetricRequest request = + new GetDistributedDatabaseRaftMetricRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.opcRequestId = opcRequestId; + return request; + // new GetDistributedDatabaseRaftMetricRequest(distributedDatabaseId, 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() + .distributedDatabaseId(distributedDatabaseId) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + 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 GetDistributedDatabaseRaftMetricRequest)) { + return false; + } + + GetDistributedDatabaseRaftMetricRequest other = (GetDistributedDatabaseRaftMetricRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java new file mode 100644 index 00000000000..d391a8d0d2c --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java @@ -0,0 +1,271 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata; + + /** Comma-separated argument names for which metadata should be retrieved. */ + public String getMetadata() { + return metadata; + } + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata = null; + + /** + * Comma-separated argument names for which metadata should be retrieved. + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + metadata(o.getMetadata()); + ifNoneMatch(o.getIfNoneMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedDatabaseRequest 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 GetDistributedDatabaseRequest + */ + public GetDistributedDatabaseRequest build() { + GetDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedDatabaseRequest 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 GetDistributedDatabaseRequest + */ + public GetDistributedDatabaseRequest buildWithoutInvocationCallback() { + GetDistributedDatabaseRequest request = new GetDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.metadata = metadata; + request.ifNoneMatch = ifNoneMatch; + request.opcRequestId = opcRequestId; + return request; + // new GetDistributedDatabaseRequest(distributedDatabaseId, metadata, ifNoneMatch, + // 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() + .distributedDatabaseId(distributedDatabaseId) + .metadata(metadata) + .ifNoneMatch(ifNoneMatch) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + 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 GetDistributedDatabaseRequest)) { + return false; + } + + GetDistributedDatabaseRequest other = (GetDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java new file mode 100644 index 00000000000..1f490305a96 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java @@ -0,0 +1,232 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * GetDistributedDatabaseRuChangeLogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseRuChangeLogRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The source shard name to filter RU change log entries. */ + private String sourceShardName; + + /** The source shard name to filter RU change log entries. */ + public String getSourceShardName() { + return sourceShardName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDistributedDatabaseRuChangeLogRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The source shard name to filter RU change log entries. */ + private String sourceShardName = null; + + /** + * The source shard name to filter RU change log entries. + * + * @param sourceShardName the value to set + * @return this builder instance + */ + public Builder sourceShardName(String sourceShardName) { + this.sourceShardName = sourceShardName; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDistributedDatabaseRuChangeLogRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + sourceShardName(o.getSourceShardName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDistributedDatabaseRuChangeLogRequest 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 GetDistributedDatabaseRuChangeLogRequest + */ + public GetDistributedDatabaseRuChangeLogRequest build() { + GetDistributedDatabaseRuChangeLogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDistributedDatabaseRuChangeLogRequest 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 GetDistributedDatabaseRuChangeLogRequest + */ + public GetDistributedDatabaseRuChangeLogRequest buildWithoutInvocationCallback() { + GetDistributedDatabaseRuChangeLogRequest request = + new GetDistributedDatabaseRuChangeLogRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.sourceShardName = sourceShardName; + request.opcRequestId = opcRequestId; + return request; + // new GetDistributedDatabaseRuChangeLogRequest(distributedDatabaseId, sourceShardName, + // 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() + .distributedDatabaseId(distributedDatabaseId) + .sourceShardName(sourceShardName) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",sourceShardName=").append(String.valueOf(this.sourceShardName)); + 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 GetDistributedDatabaseRuChangeLogRequest)) { + return false; + } + + GetDistributedDatabaseRuChangeLogRequest other = + (GetDistributedDatabaseRuChangeLogRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.sourceShardName, other.sourceShardName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..7bb347b6bcf --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java new file mode 100644 index 00000000000..89760700a27 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java @@ -0,0 +1,616 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ListDistributedAutonomousDatabasesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedAutonomousDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** A filter to return only resources that are associated with the given privateEndpointId. */ + private String privateEndpointId; + + /** A filter to return only resources that are associated with the given privateEndpointId. */ + public String getPrivateEndpointId() { + return privateEndpointId; + } + /** A filter to return only resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase.LifecycleState + lifecycleState; + + /** A filter to return only resources whose lifecycleState matches the specified value. */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources where autoResourceManagement is enabled when set to {@code + * true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based + * filtering is applied. + */ + private Boolean isAutoResourceManagementEnabled; + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to {@code + * true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based + * filtering is applied. + */ + public Boolean getIsAutoResourceManagementEnabled() { + return isAutoResourceManagementEnabled; + } + /** + * A filter to return only Globally distributed autonomous databases that match the entire name + * given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only Globally distributed autonomous databases that match the entire name + * given. The match is not case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType; + + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + public String getDbDeploymentType() { + return dbDeploymentType; + } + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata; + + /** Comma-separated argument names for which metadata should be retrieved. */ + public String getMetadata() { + return metadata; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDistributedAutonomousDatabasesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A filter to return only resources that are associated with the given privateEndpointId. + */ + private String privateEndpointId = null; + + /** + * A filter to return only resources that are associated with the given privateEndpointId. + * + * @param privateEndpointId the value to set + * @return this builder instance + */ + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + return this; + } + + /** A filter to return only resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources whose lifecycleState matches the specified value. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + .LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to + * {@code true}, or disabled when set to {@code false}. If omitted, no + * autoResourceManagement-based filtering is applied. + */ + private Boolean isAutoResourceManagementEnabled = null; + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to + * {@code true}, or disabled when set to {@code false}. If omitted, no + * autoResourceManagement-based filtering is applied. + * + * @param isAutoResourceManagementEnabled the value to set + * @return this builder instance + */ + public Builder isAutoResourceManagementEnabled(Boolean isAutoResourceManagementEnabled) { + this.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; + return this; + } + + /** + * A filter to return only Globally distributed autonomous databases that match the entire + * name given. The match is not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only Globally distributed autonomous databases that match the entire + * name given. The match is not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType = null; + + /** + * A filter to return only resources whose dbDeploymentType matches the specified value. + * + * @param dbDeploymentType the value to set + * @return this builder instance + */ + public Builder dbDeploymentType(String dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + return this; + } + + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata = null; + + /** + * Comma-separated argument names for which metadata should be retrieved. + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + 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(ListDistributedAutonomousDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + privateEndpointId(o.getPrivateEndpointId()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + isAutoResourceManagementEnabled(o.getIsAutoResourceManagementEnabled()); + displayName(o.getDisplayName()); + dbDeploymentType(o.getDbDeploymentType()); + metadata(o.getMetadata()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDistributedAutonomousDatabasesRequest 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 ListDistributedAutonomousDatabasesRequest + */ + public ListDistributedAutonomousDatabasesRequest build() { + ListDistributedAutonomousDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDistributedAutonomousDatabasesRequest 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 ListDistributedAutonomousDatabasesRequest + */ + public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback() { + ListDistributedAutonomousDatabasesRequest request = + new ListDistributedAutonomousDatabasesRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.privateEndpointId = privateEndpointId; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; + request.displayName = displayName; + request.dbDeploymentType = dbDeploymentType; + request.metadata = metadata; + return request; + // new ListDistributedAutonomousDatabasesRequest(compartmentId, compartmentIdInSubtree, + // privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .privateEndpointId(privateEndpointId) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) + .displayName(displayName) + .dbDeploymentType(dbDeploymentType) + .metadata(metadata); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isAutoResourceManagementEnabled=") + .append(String.valueOf(this.isAutoResourceManagementEnabled)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedAutonomousDatabasesRequest)) { + return false; + } + + ListDistributedAutonomousDatabasesRequest other = + (ListDistributedAutonomousDatabasesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.isAutoResourceManagementEnabled, other.isAutoResourceManagementEnabled) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.isAutoResourceManagementEnabled == null + ? 43 + : this.isAutoResourceManagementEnabled.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java new file mode 100644 index 00000000000..94a93fa2f9a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java @@ -0,0 +1,487 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ListDistributedDatabasePrivateEndpointsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedDatabasePrivateEndpointsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .LifecycleState + lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only private endpoint that match the entire name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only private endpoint that match the entire name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDistributedDatabasePrivateEndpointsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + .LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only private endpoint that match the entire name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only private endpoint that match the entire name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDistributedDatabasePrivateEndpointsRequest 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 ListDistributedDatabasePrivateEndpointsRequest + */ + public ListDistributedDatabasePrivateEndpointsRequest build() { + ListDistributedDatabasePrivateEndpointsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDistributedDatabasePrivateEndpointsRequest 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 ListDistributedDatabasePrivateEndpointsRequest + */ + public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCallback() { + ListDistributedDatabasePrivateEndpointsRequest request = + new ListDistributedDatabasePrivateEndpointsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.displayName = displayName; + return request; + // new ListDistributedDatabasePrivateEndpointsRequest(compartmentId, + // compartmentIdInSubtree, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // displayName); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .displayName(displayName); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedDatabasePrivateEndpointsRequest)) { + return false; + } + + ListDistributedDatabasePrivateEndpointsRequest other = + (ListDistributedDatabasePrivateEndpointsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java new file mode 100644 index 00000000000..698bc377420 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ListDistributedDatabasesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** A filter to return only resources that are associated with the given privateEndpointId. */ + private String privateEndpointId; + + /** A filter to return only resources that are associated with the given privateEndpointId. */ + public String getPrivateEndpointId() { + return privateEndpointId; + } + /** A filter to return only resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState + lifecycleState; + + /** A filter to return only resources whose lifecycleState matches the specified value. */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources where autoResourceManagement is enabled when set to {@code + * true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based + * filtering is applied. + */ + private Boolean isAutoResourceManagementEnabled; + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to {@code + * true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based + * filtering is applied. + */ + public Boolean getIsAutoResourceManagementEnabled() { + return isAutoResourceManagementEnabled; + } + /** + * A filter to return only Globally distributed databases that match the entire name given. The + * match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only Globally distributed databases that match the entire name given. The + * match is not case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType; + + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + public String getDbDeploymentType() { + return dbDeploymentType; + } + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata; + + /** Comma-separated argument names for which metadata should be retrieved. */ + public String getMetadata() { + return metadata; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDistributedDatabasesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * When set to true, returns resources in the specified compartment and in all of its child + * compartments recursively. Defaults to false. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * A filter to return only resources that are associated with the given privateEndpointId. + */ + private String privateEndpointId = null; + + /** + * A filter to return only resources that are associated with the given privateEndpointId. + * + * @param privateEndpointId the value to set + * @return this builder instance + */ + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + return this; + } + + /** A filter to return only resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources whose lifecycleState matches the specified value. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to + * {@code true}, or disabled when set to {@code false}. If omitted, no + * autoResourceManagement-based filtering is applied. + */ + private Boolean isAutoResourceManagementEnabled = null; + + /** + * A filter to return only resources where autoResourceManagement is enabled when set to + * {@code true}, or disabled when set to {@code false}. If omitted, no + * autoResourceManagement-based filtering is applied. + * + * @param isAutoResourceManagementEnabled the value to set + * @return this builder instance + */ + public Builder isAutoResourceManagementEnabled(Boolean isAutoResourceManagementEnabled) { + this.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; + return this; + } + + /** + * A filter to return only Globally distributed databases that match the entire name given. + * The match is not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only Globally distributed databases that match the entire name given. + * The match is not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType = null; + + /** + * A filter to return only resources whose dbDeploymentType matches the specified value. + * + * @param dbDeploymentType the value to set + * @return this builder instance + */ + public Builder dbDeploymentType(String dbDeploymentType) { + this.dbDeploymentType = dbDeploymentType; + return this; + } + + /** Comma-separated argument names for which metadata should be retrieved. */ + private String metadata = null; + + /** + * Comma-separated argument names for which metadata should be retrieved. + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + 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(ListDistributedDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + privateEndpointId(o.getPrivateEndpointId()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + isAutoResourceManagementEnabled(o.getIsAutoResourceManagementEnabled()); + displayName(o.getDisplayName()); + dbDeploymentType(o.getDbDeploymentType()); + metadata(o.getMetadata()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDistributedDatabasesRequest 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 ListDistributedDatabasesRequest + */ + public ListDistributedDatabasesRequest build() { + ListDistributedDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDistributedDatabasesRequest 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 ListDistributedDatabasesRequest + */ + public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { + ListDistributedDatabasesRequest request = new ListDistributedDatabasesRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.privateEndpointId = privateEndpointId; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; + request.displayName = displayName; + request.dbDeploymentType = dbDeploymentType; + request.metadata = metadata; + return request; + // new ListDistributedDatabasesRequest(compartmentId, compartmentIdInSubtree, + // privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .privateEndpointId(privateEndpointId) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) + .displayName(displayName) + .dbDeploymentType(dbDeploymentType) + .metadata(metadata); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isAutoResourceManagementEnabled=") + .append(String.valueOf(this.isAutoResourceManagementEnabled)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedDatabasesRequest)) { + return false; + } + + ListDistributedDatabasesRequest other = (ListDistributedDatabasesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.isAutoResourceManagementEnabled, other.isAutoResourceManagementEnabled) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) + && java.util.Objects.equals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.isAutoResourceManagementEnabled == null + ? 43 + : this.isAutoResourceManagementEnabled.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..359ee86227a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

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

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

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

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

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

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

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java new file mode 100644 index 00000000000..f285e6d8773 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java @@ -0,0 +1,393 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * MoveDistributedAutonomousDatabaseReplicationUnitRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class MoveDistributedAutonomousDatabaseReplicationUnitRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * Details required to move the replication units from the source shard to destination shard. + */ + private com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + moveDistributedAutonomousDatabaseReplicationUnitDetails; + + /** + * Details required to move the replication units from the source shard to destination shard. + */ + public com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + getMoveDistributedAutonomousDatabaseReplicationUnitDetails() { + return moveDistributedAutonomousDatabaseReplicationUnitDetails; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + getBody$() { + return moveDistributedAutonomousDatabaseReplicationUnitDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MoveDistributedAutonomousDatabaseReplicationUnitRequest, + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * Details required to move the replication units from the source shard to destination + * shard. + */ + private com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + moveDistributedAutonomousDatabaseReplicationUnitDetails = null; + + /** + * Details required to move the replication units from the source shard to destination + * shard. + * + * @param moveDistributedAutonomousDatabaseReplicationUnitDetails the value to set + * @return this builder instance + */ + public Builder moveDistributedAutonomousDatabaseReplicationUnitDetails( + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + moveDistributedAutonomousDatabaseReplicationUnitDetails) { + this.moveDistributedAutonomousDatabaseReplicationUnitDetails = + moveDistributedAutonomousDatabaseReplicationUnitDetails; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(MoveDistributedAutonomousDatabaseReplicationUnitRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + moveDistributedAutonomousDatabaseReplicationUnitDetails( + o.getMoveDistributedAutonomousDatabaseReplicationUnitDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MoveDistributedAutonomousDatabaseReplicationUnitRequest 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 MoveDistributedAutonomousDatabaseReplicationUnitRequest + */ + public MoveDistributedAutonomousDatabaseReplicationUnitRequest build() { + MoveDistributedAutonomousDatabaseReplicationUnitRequest 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.distributeddatabasev26.model + .MoveDistributedAutonomousDatabaseReplicationUnitDetails + body) { + moveDistributedAutonomousDatabaseReplicationUnitDetails(body); + return this; + } + + /** + * Build the instance of MoveDistributedAutonomousDatabaseReplicationUnitRequest 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 MoveDistributedAutonomousDatabaseReplicationUnitRequest + */ + public MoveDistributedAutonomousDatabaseReplicationUnitRequest + buildWithoutInvocationCallback() { + MoveDistributedAutonomousDatabaseReplicationUnitRequest request = + new MoveDistributedAutonomousDatabaseReplicationUnitRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.moveDistributedAutonomousDatabaseReplicationUnitDetails = + moveDistributedAutonomousDatabaseReplicationUnitDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // MoveDistributedAutonomousDatabaseReplicationUnitRequest(distributedAutonomousDatabaseId, moveDistributedAutonomousDatabaseReplicationUnitDetails, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .moveDistributedAutonomousDatabaseReplicationUnitDetails( + moveDistributedAutonomousDatabaseReplicationUnitDetails) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",moveDistributedAutonomousDatabaseReplicationUnitDetails=") + .append( + String.valueOf( + this.moveDistributedAutonomousDatabaseReplicationUnitDetails)); + 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 MoveDistributedAutonomousDatabaseReplicationUnitRequest)) { + return false; + } + + MoveDistributedAutonomousDatabaseReplicationUnitRequest other = + (MoveDistributedAutonomousDatabaseReplicationUnitRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.moveDistributedAutonomousDatabaseReplicationUnitDetails, + other.moveDistributedAutonomousDatabaseReplicationUnitDetails) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.moveDistributedAutonomousDatabaseReplicationUnitDetails == null + ? 43 + : this.moveDistributedAutonomousDatabaseReplicationUnitDetails + .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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java new file mode 100644 index 00000000000..44a3720ff12 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java @@ -0,0 +1,379 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * MoveDistributedDatabaseReplicationUnitRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class MoveDistributedDatabaseReplicationUnitRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Details required to move the replication units from source shard to destination shard. */ + private com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails + moveDistributedDatabaseReplicationUnitDetails; + + /** Details required to move the replication units from source shard to destination shard. */ + public com.oracle.bmc.distributeddatabasev26.model.MoveDistributedDatabaseReplicationUnitDetails + getMoveDistributedDatabaseReplicationUnitDetails() { + return moveDistributedDatabaseReplicationUnitDetails; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.MoveDistributedDatabaseReplicationUnitDetails + getBody$() { + return moveDistributedDatabaseReplicationUnitDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MoveDistributedDatabaseReplicationUnitRequest, + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * Details required to move the replication units from source shard to destination shard. + */ + private com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails + moveDistributedDatabaseReplicationUnitDetails = null; + + /** + * Details required to move the replication units from source shard to destination shard. + * + * @param moveDistributedDatabaseReplicationUnitDetails the value to set + * @return this builder instance + */ + public Builder moveDistributedDatabaseReplicationUnitDetails( + com.oracle.bmc.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails + moveDistributedDatabaseReplicationUnitDetails) { + this.moveDistributedDatabaseReplicationUnitDetails = + moveDistributedDatabaseReplicationUnitDetails; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(MoveDistributedDatabaseReplicationUnitRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + moveDistributedDatabaseReplicationUnitDetails( + o.getMoveDistributedDatabaseReplicationUnitDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MoveDistributedDatabaseReplicationUnitRequest 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 MoveDistributedDatabaseReplicationUnitRequest + */ + public MoveDistributedDatabaseReplicationUnitRequest build() { + MoveDistributedDatabaseReplicationUnitRequest 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.distributeddatabasev26.model + .MoveDistributedDatabaseReplicationUnitDetails + body) { + moveDistributedDatabaseReplicationUnitDetails(body); + return this; + } + + /** + * Build the instance of MoveDistributedDatabaseReplicationUnitRequest 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 MoveDistributedDatabaseReplicationUnitRequest + */ + public MoveDistributedDatabaseReplicationUnitRequest buildWithoutInvocationCallback() { + MoveDistributedDatabaseReplicationUnitRequest request = + new MoveDistributedDatabaseReplicationUnitRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.moveDistributedDatabaseReplicationUnitDetails = + moveDistributedDatabaseReplicationUnitDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new MoveDistributedDatabaseReplicationUnitRequest(distributedDatabaseId, + // moveDistributedDatabaseReplicationUnitDetails, 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() + .distributedDatabaseId(distributedDatabaseId) + .moveDistributedDatabaseReplicationUnitDetails( + moveDistributedDatabaseReplicationUnitDetails) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",moveDistributedDatabaseReplicationUnitDetails=") + .append(String.valueOf(this.moveDistributedDatabaseReplicationUnitDetails)); + 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 MoveDistributedDatabaseReplicationUnitRequest)) { + return false; + } + + MoveDistributedDatabaseReplicationUnitRequest other = + (MoveDistributedDatabaseReplicationUnitRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.moveDistributedDatabaseReplicationUnitDetails, + other.moveDistributedDatabaseReplicationUnitDetails) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.moveDistributedDatabaseReplicationUnitDetails == null + ? 43 + : this.moveDistributedDatabaseReplicationUnitDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..6cd683e349b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,385 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * PatchDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedAutonomousDatabaseDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * The payload containing instructions to patch the Globally distributed autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedAutonomousDatabaseDetails + patchDistributedAutonomousDatabaseDetails; + + /** + * The payload containing instructions to patch the Globally distributed autonomous database. + */ + public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedAutonomousDatabaseDetails + getPatchDistributedAutonomousDatabaseDetails() { + return patchDistributedAutonomousDatabaseDetails; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedAutonomousDatabaseDetails + getBody$() { + return patchDistributedAutonomousDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchDistributedAutonomousDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedAutonomousDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * The payload containing instructions to patch the Globally distributed autonomous + * database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedAutonomousDatabaseDetails + patchDistributedAutonomousDatabaseDetails = null; + + /** + * The payload containing instructions to patch the Globally distributed autonomous + * database. + * + * @param patchDistributedAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder patchDistributedAutonomousDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedAutonomousDatabaseDetails + patchDistributedAutonomousDatabaseDetails) { + this.patchDistributedAutonomousDatabaseDetails = + patchDistributedAutonomousDatabaseDetails; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PatchDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + patchDistributedAutonomousDatabaseDetails( + o.getPatchDistributedAutonomousDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchDistributedAutonomousDatabaseRequest 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 PatchDistributedAutonomousDatabaseRequest + */ + public PatchDistributedAutonomousDatabaseRequest build() { + PatchDistributedAutonomousDatabaseRequest 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.distributeddatabasev26.model + .PatchDistributedAutonomousDatabaseDetails + body) { + patchDistributedAutonomousDatabaseDetails(body); + return this; + } + + /** + * Build the instance of PatchDistributedAutonomousDatabaseRequest 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 PatchDistributedAutonomousDatabaseRequest + */ + public PatchDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + PatchDistributedAutonomousDatabaseRequest request = + new PatchDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.patchDistributedAutonomousDatabaseDetails = + patchDistributedAutonomousDatabaseDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new PatchDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // patchDistributedAutonomousDatabaseDetails, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .patchDistributedAutonomousDatabaseDetails( + patchDistributedAutonomousDatabaseDetails) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",patchDistributedAutonomousDatabaseDetails=") + .append(String.valueOf(this.patchDistributedAutonomousDatabaseDetails)); + 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 PatchDistributedAutonomousDatabaseRequest)) { + return false; + } + + PatchDistributedAutonomousDatabaseRequest other = + (PatchDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.patchDistributedAutonomousDatabaseDetails, + other.patchDistributedAutonomousDatabaseDetails) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.patchDistributedAutonomousDatabaseDetails == null + ? 43 + : this.patchDistributedAutonomousDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java new file mode 100644 index 00000000000..929111394fa --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java @@ -0,0 +1,385 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * PatchDistributedDatabasePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedDatabasePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails> { + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ + private com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + patchDistributedDatabasePrivateEndpointDetails; + + /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ + public com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + getPatchDistributedDatabasePrivateEndpointDetails() { + return patchDistributedDatabasePrivateEndpointDetails; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + getBody$() { + return patchDistributedDatabasePrivateEndpointDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchDistributedDatabasePrivateEndpointRequest, + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ + private com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + patchDistributedDatabasePrivateEndpointDetails = null; + + /** + * The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. + * + * @param patchDistributedDatabasePrivateEndpointDetails the value to set + * @return this builder instance + */ + public Builder patchDistributedDatabasePrivateEndpointDetails( + com.oracle.bmc.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + patchDistributedDatabasePrivateEndpointDetails) { + this.patchDistributedDatabasePrivateEndpointDetails = + patchDistributedDatabasePrivateEndpointDetails; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PatchDistributedDatabasePrivateEndpointRequest o) { + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + patchDistributedDatabasePrivateEndpointDetails( + o.getPatchDistributedDatabasePrivateEndpointDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchDistributedDatabasePrivateEndpointRequest 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 PatchDistributedDatabasePrivateEndpointRequest + */ + public PatchDistributedDatabasePrivateEndpointRequest build() { + PatchDistributedDatabasePrivateEndpointRequest 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.distributeddatabasev26.model + .PatchDistributedDatabasePrivateEndpointDetails + body) { + patchDistributedDatabasePrivateEndpointDetails(body); + return this; + } + + /** + * Build the instance of PatchDistributedDatabasePrivateEndpointRequest 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 PatchDistributedDatabasePrivateEndpointRequest + */ + public PatchDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { + PatchDistributedDatabasePrivateEndpointRequest request = + new PatchDistributedDatabasePrivateEndpointRequest(); + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.patchDistributedDatabasePrivateEndpointDetails = + patchDistributedDatabasePrivateEndpointDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // PatchDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, + // patchDistributedDatabasePrivateEndpointDetails, 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() + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .patchDistributedDatabasePrivateEndpointDetails( + patchDistributedDatabasePrivateEndpointDetails) + .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(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",patchDistributedDatabasePrivateEndpointDetails=") + .append(String.valueOf(this.patchDistributedDatabasePrivateEndpointDetails)); + 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 PatchDistributedDatabasePrivateEndpointRequest)) { + return false; + } + + PatchDistributedDatabasePrivateEndpointRequest other = + (PatchDistributedDatabasePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals( + this.patchDistributedDatabasePrivateEndpointDetails, + other.patchDistributedDatabasePrivateEndpointDetails) + && 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.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.patchDistributedDatabasePrivateEndpointDetails == null + ? 43 + : this.patchDistributedDatabasePrivateEndpointDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java new file mode 100644 index 00000000000..f3d5f43152b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java @@ -0,0 +1,359 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * PatchDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The payload containing instructions to patch the Globally distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails + patchDistributedDatabaseDetails; + + /** The payload containing instructions to patch the Globally distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails + getPatchDistributedDatabaseDetails() { + return patchDistributedDatabaseDetails; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails getBody$() { + return patchDistributedDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchDistributedDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The payload containing instructions to patch the Globally distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails + patchDistributedDatabaseDetails = null; + + /** + * The payload containing instructions to patch the Globally distributed database. + * + * @param patchDistributedDatabaseDetails the value to set + * @return this builder instance + */ + public Builder patchDistributedDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails + patchDistributedDatabaseDetails) { + this.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PatchDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + patchDistributedDatabaseDetails(o.getPatchDistributedDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchDistributedDatabaseRequest 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 PatchDistributedDatabaseRequest + */ + public PatchDistributedDatabaseRequest build() { + PatchDistributedDatabaseRequest 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.distributeddatabasev26.model.PatchDistributedDatabaseDetails body) { + patchDistributedDatabaseDetails(body); + return this; + } + + /** + * Build the instance of PatchDistributedDatabaseRequest 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 PatchDistributedDatabaseRequest + */ + public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { + PatchDistributedDatabaseRequest request = new PatchDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new PatchDistributedDatabaseRequest(distributedDatabaseId, + // patchDistributedDatabaseDetails, 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() + .distributedDatabaseId(distributedDatabaseId) + .patchDistributedDatabaseDetails(patchDistributedDatabaseDetails) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",patchDistributedDatabaseDetails=") + .append(String.valueOf(this.patchDistributedDatabaseDetails)); + 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 PatchDistributedDatabaseRequest)) { + return false; + } + + PatchDistributedDatabaseRequest other = (PatchDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.patchDistributedDatabaseDetails, other.patchDistributedDatabaseDetails) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.patchDistributedDatabaseDetails == null + ? 43 + : this.patchDistributedDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java new file mode 100644 index 00000000000..fca6be2d275 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java @@ -0,0 +1,330 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * RecreateFailedDistributedAutonomousDatabaseResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RecreateFailedDistributedAutonomousDatabaseResourceRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** Specify the name of the shard, catalog, or GSM. */ + private String resourceName; + + /** Specify the name of the shard, catalog, or GSM. */ + public String getResourceName() { + return resourceName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RecreateFailedDistributedAutonomousDatabaseResourceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** Specify the name of the shard, catalog, or GSM. */ + private String resourceName = null; + + /** + * Specify the name of the shard, catalog, or GSM. + * + * @param resourceName the value to set + * @return this builder instance + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RecreateFailedDistributedAutonomousDatabaseResourceRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + resourceName(o.getResourceName()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest 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 RecreateFailedDistributedAutonomousDatabaseResourceRequest + */ + public RecreateFailedDistributedAutonomousDatabaseResourceRequest build() { + RecreateFailedDistributedAutonomousDatabaseResourceRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest 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 RecreateFailedDistributedAutonomousDatabaseResourceRequest + */ + public RecreateFailedDistributedAutonomousDatabaseResourceRequest + buildWithoutInvocationCallback() { + RecreateFailedDistributedAutonomousDatabaseResourceRequest request = + new RecreateFailedDistributedAutonomousDatabaseResourceRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.resourceName = resourceName; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new + // RecreateFailedDistributedAutonomousDatabaseResourceRequest(distributedAutonomousDatabaseId, resourceName, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .resourceName(resourceName) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",resourceName=").append(String.valueOf(this.resourceName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecreateFailedDistributedAutonomousDatabaseResourceRequest)) { + return false; + } + + RecreateFailedDistributedAutonomousDatabaseResourceRequest other = + (RecreateFailedDistributedAutonomousDatabaseResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java new file mode 100644 index 00000000000..f115bd242eb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * RecreateFailedDistributedDatabaseResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RecreateFailedDistributedDatabaseResourceRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Specify the name of the shard, catalog, or GSM. */ + private String resourceName; + + /** Specify the name of the shard, catalog, or GSM. */ + public String getResourceName() { + return resourceName; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RecreateFailedDistributedDatabaseResourceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** Specify the name of the shard, catalog, or GSM. */ + private String resourceName = null; + + /** + * Specify the name of the shard, catalog, or GSM. + * + * @param resourceName the value to set + * @return this builder instance + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RecreateFailedDistributedDatabaseResourceRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + resourceName(o.getResourceName()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RecreateFailedDistributedDatabaseResourceRequest 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 RecreateFailedDistributedDatabaseResourceRequest + */ + public RecreateFailedDistributedDatabaseResourceRequest build() { + RecreateFailedDistributedDatabaseResourceRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RecreateFailedDistributedDatabaseResourceRequest 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 RecreateFailedDistributedDatabaseResourceRequest + */ + public RecreateFailedDistributedDatabaseResourceRequest buildWithoutInvocationCallback() { + RecreateFailedDistributedDatabaseResourceRequest request = + new RecreateFailedDistributedDatabaseResourceRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.resourceName = resourceName; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RecreateFailedDistributedDatabaseResourceRequest(distributedDatabaseId, + // resourceName, 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() + .distributedDatabaseId(distributedDatabaseId) + .resourceName(resourceName) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",resourceName=").append(String.valueOf(this.resourceName)); + 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 RecreateFailedDistributedDatabaseResourceRequest)) { + return false; + } + + RecreateFailedDistributedDatabaseResourceRequest other = + (RecreateFailedDistributedDatabaseResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java new file mode 100644 index 00000000000..32988c1b81d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java @@ -0,0 +1,299 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ReinstateProxyInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ReinstateProxyInstanceRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReinstateProxyInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ReinstateProxyInstanceRequest o) { + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReinstateProxyInstanceRequest 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 ReinstateProxyInstanceRequest + */ + public ReinstateProxyInstanceRequest build() { + ReinstateProxyInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ReinstateProxyInstanceRequest 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 ReinstateProxyInstanceRequest + */ + public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { + ReinstateProxyInstanceRequest request = new ReinstateProxyInstanceRequest(); + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ReinstateProxyInstanceRequest(distributedDatabasePrivateEndpointId, opcRequestId, + // ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReinstateProxyInstanceRequest)) { + return false; + } + + ReinstateProxyInstanceRequest other = (ReinstateProxyInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java new file mode 100644 index 00000000000..5c5c9df28eb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * RotateDistributedAutonomousDatabasePasswordsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RotateDistributedAutonomousDatabasePasswordsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed autonomous + * database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + rotateDistributedAutonomousDatabasePasswordsDetails; + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed autonomous + * database. + */ + public com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + getRotateDistributedAutonomousDatabasePasswordsDetails() { + return rotateDistributedAutonomousDatabasePasswordsDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + getBody$() { + return rotateDistributedAutonomousDatabasePasswordsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RotateDistributedAutonomousDatabasePasswordsRequest, + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed + * autonomous database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + rotateDistributedAutonomousDatabasePasswordsDetails = null; + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed + * autonomous database. + * + * @param rotateDistributedAutonomousDatabasePasswordsDetails the value to set + * @return this builder instance + */ + public Builder rotateDistributedAutonomousDatabasePasswordsDetails( + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + rotateDistributedAutonomousDatabasePasswordsDetails) { + this.rotateDistributedAutonomousDatabasePasswordsDetails = + rotateDistributedAutonomousDatabasePasswordsDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RotateDistributedAutonomousDatabasePasswordsRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + rotateDistributedAutonomousDatabasePasswordsDetails( + o.getRotateDistributedAutonomousDatabasePasswordsDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RotateDistributedAutonomousDatabasePasswordsRequest 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 RotateDistributedAutonomousDatabasePasswordsRequest + */ + public RotateDistributedAutonomousDatabasePasswordsRequest build() { + RotateDistributedAutonomousDatabasePasswordsRequest 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.distributeddatabasev26.model + .RotateDistributedAutonomousDatabasePasswordsDetails + body) { + rotateDistributedAutonomousDatabasePasswordsDetails(body); + return this; + } + + /** + * Build the instance of RotateDistributedAutonomousDatabasePasswordsRequest 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 RotateDistributedAutonomousDatabasePasswordsRequest + */ + public RotateDistributedAutonomousDatabasePasswordsRequest + buildWithoutInvocationCallback() { + RotateDistributedAutonomousDatabasePasswordsRequest request = + new RotateDistributedAutonomousDatabasePasswordsRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.rotateDistributedAutonomousDatabasePasswordsDetails = + rotateDistributedAutonomousDatabasePasswordsDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // RotateDistributedAutonomousDatabasePasswordsRequest(distributedAutonomousDatabaseId, + // rotateDistributedAutonomousDatabasePasswordsDetails, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .rotateDistributedAutonomousDatabasePasswordsDetails( + rotateDistributedAutonomousDatabasePasswordsDetails) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",rotateDistributedAutonomousDatabasePasswordsDetails=") + .append(String.valueOf(this.rotateDistributedAutonomousDatabasePasswordsDetails)); + 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 RotateDistributedAutonomousDatabasePasswordsRequest)) { + return false; + } + + RotateDistributedAutonomousDatabasePasswordsRequest other = + (RotateDistributedAutonomousDatabasePasswordsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.rotateDistributedAutonomousDatabasePasswordsDetails, + other.rotateDistributedAutonomousDatabasePasswordsDetails) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.rotateDistributedAutonomousDatabasePasswordsDetails == null + ? 43 + : this.rotateDistributedAutonomousDatabasePasswordsDetails + .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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.java new file mode 100644 index 00000000000..582f0637ca0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * RotateDistributedDatabasePasswordsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RotateDistributedDatabasePasswordsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedDatabasePasswordsDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Details to rotate passwords for shards and catalogs in the Globally distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabasePasswordsDetails + rotateDistributedDatabasePasswordsDetails; + + /** Details to rotate passwords for shards and catalogs in the Globally distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabasePasswordsDetails + getRotateDistributedDatabasePasswordsDetails() { + return rotateDistributedDatabasePasswordsDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabasePasswordsDetails + getBody$() { + return rotateDistributedDatabasePasswordsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RotateDistributedDatabasePasswordsRequest, + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedDatabasePasswordsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed database. + */ + private com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedDatabasePasswordsDetails + rotateDistributedDatabasePasswordsDetails = null; + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed database. + * + * @param rotateDistributedDatabasePasswordsDetails the value to set + * @return this builder instance + */ + public Builder rotateDistributedDatabasePasswordsDetails( + com.oracle.bmc.distributeddatabasev26.model + .RotateDistributedDatabasePasswordsDetails + rotateDistributedDatabasePasswordsDetails) { + this.rotateDistributedDatabasePasswordsDetails = + rotateDistributedDatabasePasswordsDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RotateDistributedDatabasePasswordsRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + rotateDistributedDatabasePasswordsDetails( + o.getRotateDistributedDatabasePasswordsDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RotateDistributedDatabasePasswordsRequest 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 RotateDistributedDatabasePasswordsRequest + */ + public RotateDistributedDatabasePasswordsRequest build() { + RotateDistributedDatabasePasswordsRequest 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.distributeddatabasev26.model + .RotateDistributedDatabasePasswordsDetails + body) { + rotateDistributedDatabasePasswordsDetails(body); + return this; + } + + /** + * Build the instance of RotateDistributedDatabasePasswordsRequest 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 RotateDistributedDatabasePasswordsRequest + */ + public RotateDistributedDatabasePasswordsRequest buildWithoutInvocationCallback() { + RotateDistributedDatabasePasswordsRequest request = + new RotateDistributedDatabasePasswordsRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.rotateDistributedDatabasePasswordsDetails = + rotateDistributedDatabasePasswordsDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RotateDistributedDatabasePasswordsRequest(distributedDatabaseId, + // rotateDistributedDatabasePasswordsDetails, 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() + .distributedDatabaseId(distributedDatabaseId) + .rotateDistributedDatabasePasswordsDetails( + rotateDistributedDatabasePasswordsDetails) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",rotateDistributedDatabasePasswordsDetails=") + .append(String.valueOf(this.rotateDistributedDatabasePasswordsDetails)); + 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 RotateDistributedDatabasePasswordsRequest)) { + return false; + } + + RotateDistributedDatabasePasswordsRequest other = + (RotateDistributedDatabasePasswordsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.rotateDistributedDatabasePasswordsDetails, + other.rotateDistributedDatabasePasswordsDetails) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.rotateDistributedDatabasePasswordsDetails == null + ? 43 + : this.rotateDistributedDatabasePasswordsDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java new file mode 100644 index 00000000000..488e44e91fb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java @@ -0,0 +1,379 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ScaleDistributedAutonomousDatabaseGsmsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ScaleDistributedAutonomousDatabaseGsmsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails> { + + /** Empty payload to scale GSM instances for the distributed autonomous database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails + scaleDistributedAutonomousDatabaseGsmsDetails; + + /** Empty payload to scale GSM instances for the distributed autonomous database. */ + public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails + getScaleDistributedAutonomousDatabaseGsmsDetails() { + return scaleDistributedAutonomousDatabaseGsmsDetails; + } + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails + getBody$() { + return scaleDistributedAutonomousDatabaseGsmsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleDistributedAutonomousDatabaseGsmsRequest, + com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Empty payload to scale GSM instances for the distributed autonomous database. */ + private com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails + scaleDistributedAutonomousDatabaseGsmsDetails = null; + + /** + * Empty payload to scale GSM instances for the distributed autonomous database. + * + * @param scaleDistributedAutonomousDatabaseGsmsDetails the value to set + * @return this builder instance + */ + public Builder scaleDistributedAutonomousDatabaseGsmsDetails( + com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails + scaleDistributedAutonomousDatabaseGsmsDetails) { + this.scaleDistributedAutonomousDatabaseGsmsDetails = + scaleDistributedAutonomousDatabaseGsmsDetails; + return this; + } + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ScaleDistributedAutonomousDatabaseGsmsRequest o) { + scaleDistributedAutonomousDatabaseGsmsDetails( + o.getScaleDistributedAutonomousDatabaseGsmsDetails()); + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleDistributedAutonomousDatabaseGsmsRequest 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 ScaleDistributedAutonomousDatabaseGsmsRequest + */ + public ScaleDistributedAutonomousDatabaseGsmsRequest build() { + ScaleDistributedAutonomousDatabaseGsmsRequest 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.distributeddatabasev26.model + .ScaleDistributedAutonomousDatabaseGsmsDetails + body) { + scaleDistributedAutonomousDatabaseGsmsDetails(body); + return this; + } + + /** + * Build the instance of ScaleDistributedAutonomousDatabaseGsmsRequest 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 ScaleDistributedAutonomousDatabaseGsmsRequest + */ + public ScaleDistributedAutonomousDatabaseGsmsRequest buildWithoutInvocationCallback() { + ScaleDistributedAutonomousDatabaseGsmsRequest request = + new ScaleDistributedAutonomousDatabaseGsmsRequest(); + request.scaleDistributedAutonomousDatabaseGsmsDetails = + scaleDistributedAutonomousDatabaseGsmsDetails; + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // ScaleDistributedAutonomousDatabaseGsmsRequest(scaleDistributedAutonomousDatabaseGsmsDetails, distributedAutonomousDatabaseId, 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() + .scaleDistributedAutonomousDatabaseGsmsDetails( + scaleDistributedAutonomousDatabaseGsmsDetails) + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",scaleDistributedAutonomousDatabaseGsmsDetails=") + .append(String.valueOf(this.scaleDistributedAutonomousDatabaseGsmsDetails)); + sb.append(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 ScaleDistributedAutonomousDatabaseGsmsRequest)) { + return false; + } + + ScaleDistributedAutonomousDatabaseGsmsRequest other = + (ScaleDistributedAutonomousDatabaseGsmsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleDistributedAutonomousDatabaseGsmsDetails, + other.scaleDistributedAutonomousDatabaseGsmsDetails) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.scaleDistributedAutonomousDatabaseGsmsDetails == null + ? 43 + : this.scaleDistributedAutonomousDatabaseGsmsDetails.hashCode()); + result = + (result * PRIME) + + (this.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java new file mode 100644 index 00000000000..aa158460ba1 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java @@ -0,0 +1,363 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ScaleDistributedDatabaseGsmsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ScaleDistributedDatabaseGsmsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails> { + + /** Empty payload to scale GSM instances for the distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + scaleDistributedDatabaseGsmsDetails; + + /** Empty payload to scale GSM instances for the distributed database. */ + public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + getScaleDistributedDatabaseGsmsDetails() { + return scaleDistributedDatabaseGsmsDetails; + } + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + getBody$() { + return scaleDistributedDatabaseGsmsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleDistributedDatabaseGsmsRequest, + com.oracle.bmc.distributeddatabasev26.model + .ScaleDistributedDatabaseGsmsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Empty payload to scale GSM instances for the distributed database. */ + private com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + scaleDistributedDatabaseGsmsDetails = null; + + /** + * Empty payload to scale GSM instances for the distributed database. + * + * @param scaleDistributedDatabaseGsmsDetails the value to set + * @return this builder instance + */ + public Builder scaleDistributedDatabaseGsmsDetails( + com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + scaleDistributedDatabaseGsmsDetails) { + this.scaleDistributedDatabaseGsmsDetails = scaleDistributedDatabaseGsmsDetails; + return this; + } + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ScaleDistributedDatabaseGsmsRequest o) { + scaleDistributedDatabaseGsmsDetails(o.getScaleDistributedDatabaseGsmsDetails()); + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleDistributedDatabaseGsmsRequest 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 ScaleDistributedDatabaseGsmsRequest + */ + public ScaleDistributedDatabaseGsmsRequest build() { + ScaleDistributedDatabaseGsmsRequest 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.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + body) { + scaleDistributedDatabaseGsmsDetails(body); + return this; + } + + /** + * Build the instance of ScaleDistributedDatabaseGsmsRequest 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 ScaleDistributedDatabaseGsmsRequest + */ + public ScaleDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() { + ScaleDistributedDatabaseGsmsRequest request = new ScaleDistributedDatabaseGsmsRequest(); + request.scaleDistributedDatabaseGsmsDetails = scaleDistributedDatabaseGsmsDetails; + request.distributedDatabaseId = distributedDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ScaleDistributedDatabaseGsmsRequest(scaleDistributedDatabaseGsmsDetails, + // distributedDatabaseId, 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() + .scaleDistributedDatabaseGsmsDetails(scaleDistributedDatabaseGsmsDetails) + .distributedDatabaseId(distributedDatabaseId) + .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(",scaleDistributedDatabaseGsmsDetails=") + .append(String.valueOf(this.scaleDistributedDatabaseGsmsDetails)); + sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + 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 ScaleDistributedDatabaseGsmsRequest)) { + return false; + } + + ScaleDistributedDatabaseGsmsRequest other = (ScaleDistributedDatabaseGsmsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleDistributedDatabaseGsmsDetails, + other.scaleDistributedDatabaseGsmsDetails) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && 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.scaleDistributedDatabaseGsmsDetails == null + ? 43 + : this.scaleDistributedDatabaseGsmsDetails.hashCode()); + result = + (result * PRIME) + + (this.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..0236e4914db --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,301 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * StartDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StartDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartDistributedAutonomousDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StartDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartDistributedAutonomousDatabaseRequest 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 StartDistributedAutonomousDatabaseRequest + */ + public StartDistributedAutonomousDatabaseRequest build() { + StartDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StartDistributedAutonomousDatabaseRequest 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 StartDistributedAutonomousDatabaseRequest + */ + public StartDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + StartDistributedAutonomousDatabaseRequest request = + new StartDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new StartDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 StartDistributedAutonomousDatabaseRequest)) { + return false; + } + + StartDistributedAutonomousDatabaseRequest other = + (StartDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java new file mode 100644 index 00000000000..05e21c7b553 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java @@ -0,0 +1,295 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * StartDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StartDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartDistributedDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StartDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartDistributedDatabaseRequest 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 StartDistributedDatabaseRequest + */ + public StartDistributedDatabaseRequest build() { + StartDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StartDistributedDatabaseRequest 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 StartDistributedDatabaseRequest + */ + public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { + StartDistributedDatabaseRequest request = new StartDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new StartDistributedDatabaseRequest(distributedDatabaseId, 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() + .distributedDatabaseId(distributedDatabaseId) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + 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 StartDistributedDatabaseRequest)) { + return false; + } + + StartDistributedDatabaseRequest other = (StartDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..559d769f45a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,301 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * StopDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StopDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopDistributedAutonomousDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StopDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopDistributedAutonomousDatabaseRequest 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 StopDistributedAutonomousDatabaseRequest + */ + public StopDistributedAutonomousDatabaseRequest build() { + StopDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopDistributedAutonomousDatabaseRequest 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 StopDistributedAutonomousDatabaseRequest + */ + public StopDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + StopDistributedAutonomousDatabaseRequest request = + new StopDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new StopDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 StopDistributedAutonomousDatabaseRequest)) { + return false; + } + + StopDistributedAutonomousDatabaseRequest other = + (StopDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java new file mode 100644 index 00000000000..4264defbcf3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java @@ -0,0 +1,295 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * StopDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StopDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopDistributedDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StopDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopDistributedDatabaseRequest 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 StopDistributedDatabaseRequest + */ + public StopDistributedDatabaseRequest build() { + StopDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopDistributedDatabaseRequest 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 StopDistributedDatabaseRequest + */ + public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { + StopDistributedDatabaseRequest request = new StopDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new StopDistributedDatabaseRequest(distributedDatabaseId, 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() + .distributedDatabaseId(distributedDatabaseId) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + 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 StopDistributedDatabaseRequest)) { + return false; + } + + StopDistributedDatabaseRequest other = (StopDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java new file mode 100644 index 00000000000..5f506edf667 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java @@ -0,0 +1,326 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * UpdateDistributedAutonomousDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedAutonomousDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedAutonomousDatabaseDetails> { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** The configuration of the Globally distributed autonomous database to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedAutonomousDatabaseDetails + updateDistributedAutonomousDatabaseDetails; + + /** The configuration of the Globally distributed autonomous database to be updated. */ + public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedAutonomousDatabaseDetails + getUpdateDistributedAutonomousDatabaseDetails() { + return updateDistributedAutonomousDatabaseDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedAutonomousDatabaseDetails + getBody$() { + return updateDistributedAutonomousDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDistributedAutonomousDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedAutonomousDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** The configuration of the Globally distributed autonomous database to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedAutonomousDatabaseDetails + updateDistributedAutonomousDatabaseDetails = null; + + /** + * The configuration of the Globally distributed autonomous database to be updated. + * + * @param updateDistributedAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder updateDistributedAutonomousDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedAutonomousDatabaseDetails + updateDistributedAutonomousDatabaseDetails) { + this.updateDistributedAutonomousDatabaseDetails = + updateDistributedAutonomousDatabaseDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDistributedAutonomousDatabaseRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + updateDistributedAutonomousDatabaseDetails( + o.getUpdateDistributedAutonomousDatabaseDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDistributedAutonomousDatabaseRequest 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 UpdateDistributedAutonomousDatabaseRequest + */ + public UpdateDistributedAutonomousDatabaseRequest build() { + UpdateDistributedAutonomousDatabaseRequest 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.distributeddatabasev26.model + .UpdateDistributedAutonomousDatabaseDetails + body) { + updateDistributedAutonomousDatabaseDetails(body); + return this; + } + + /** + * Build the instance of UpdateDistributedAutonomousDatabaseRequest 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 UpdateDistributedAutonomousDatabaseRequest + */ + public UpdateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { + UpdateDistributedAutonomousDatabaseRequest request = + new UpdateDistributedAutonomousDatabaseRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.updateDistributedAutonomousDatabaseDetails = + updateDistributedAutonomousDatabaseDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, + // updateDistributedAutonomousDatabaseDetails, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .updateDistributedAutonomousDatabaseDetails( + updateDistributedAutonomousDatabaseDetails) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",updateDistributedAutonomousDatabaseDetails=") + .append(String.valueOf(this.updateDistributedAutonomousDatabaseDetails)); + 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 UpdateDistributedAutonomousDatabaseRequest)) { + return false; + } + + UpdateDistributedAutonomousDatabaseRequest other = + (UpdateDistributedAutonomousDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals( + this.updateDistributedAutonomousDatabaseDetails, + other.updateDistributedAutonomousDatabaseDetails) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.updateDistributedAutonomousDatabaseDetails == null + ? 43 + : this.updateDistributedAutonomousDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java new file mode 100644 index 00000000000..611226ec6e3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java @@ -0,0 +1,385 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * UpdateDistributedDatabasePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedDatabasePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails> { + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId; + + /** Distributed Database PrivateEndpoint identifier */ + public String getDistributedDatabasePrivateEndpointId() { + return distributedDatabasePrivateEndpointId; + } + /** The configuration of private endpoint to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + updateDistributedDatabasePrivateEndpointDetails; + + /** The configuration of private endpoint to be updated. */ + public com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + getUpdateDistributedDatabasePrivateEndpointDetails() { + return updateDistributedDatabasePrivateEndpointDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + getBody$() { + return updateDistributedDatabasePrivateEndpointDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDistributedDatabasePrivateEndpointRequest, + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Distributed Database PrivateEndpoint identifier */ + private String distributedDatabasePrivateEndpointId = null; + + /** + * Distributed Database PrivateEndpoint identifier + * + * @param distributedDatabasePrivateEndpointId the value to set + * @return this builder instance + */ + public Builder distributedDatabasePrivateEndpointId( + String distributedDatabasePrivateEndpointId) { + this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + return this; + } + + /** The configuration of private endpoint to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + updateDistributedDatabasePrivateEndpointDetails = null; + + /** + * The configuration of private endpoint to be updated. + * + * @param updateDistributedDatabasePrivateEndpointDetails the value to set + * @return this builder instance + */ + public Builder updateDistributedDatabasePrivateEndpointDetails( + com.oracle.bmc.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + updateDistributedDatabasePrivateEndpointDetails) { + this.updateDistributedDatabasePrivateEndpointDetails = + updateDistributedDatabasePrivateEndpointDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDistributedDatabasePrivateEndpointRequest o) { + distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); + updateDistributedDatabasePrivateEndpointDetails( + o.getUpdateDistributedDatabasePrivateEndpointDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDistributedDatabasePrivateEndpointRequest 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 UpdateDistributedDatabasePrivateEndpointRequest + */ + public UpdateDistributedDatabasePrivateEndpointRequest build() { + UpdateDistributedDatabasePrivateEndpointRequest 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.distributeddatabasev26.model + .UpdateDistributedDatabasePrivateEndpointDetails + body) { + updateDistributedDatabasePrivateEndpointDetails(body); + return this; + } + + /** + * Build the instance of UpdateDistributedDatabasePrivateEndpointRequest 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 UpdateDistributedDatabasePrivateEndpointRequest + */ + public UpdateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { + UpdateDistributedDatabasePrivateEndpointRequest request = + new UpdateDistributedDatabasePrivateEndpointRequest(); + request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + request.updateDistributedDatabasePrivateEndpointDetails = + updateDistributedDatabasePrivateEndpointDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // UpdateDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, + // updateDistributedDatabasePrivateEndpointDetails, 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() + .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) + .updateDistributedDatabasePrivateEndpointDetails( + updateDistributedDatabasePrivateEndpointDetails) + .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(",distributedDatabasePrivateEndpointId=") + .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); + sb.append(",updateDistributedDatabasePrivateEndpointDetails=") + .append(String.valueOf(this.updateDistributedDatabasePrivateEndpointDetails)); + 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 UpdateDistributedDatabasePrivateEndpointRequest)) { + return false; + } + + UpdateDistributedDatabasePrivateEndpointRequest other = + (UpdateDistributedDatabasePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpointId, + other.distributedDatabasePrivateEndpointId) + && java.util.Objects.equals( + this.updateDistributedDatabasePrivateEndpointDetails, + other.updateDistributedDatabasePrivateEndpointDetails) + && 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.distributedDatabasePrivateEndpointId == null + ? 43 + : this.distributedDatabasePrivateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.updateDistributedDatabasePrivateEndpointDetails == null + ? 43 + : this.updateDistributedDatabasePrivateEndpointDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java new file mode 100644 index 00000000000..ffc2fbfd795 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java @@ -0,0 +1,309 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * UpdateDistributedDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** The configuration of the Globally distributed database to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails + updateDistributedDatabaseDetails; + + /** The configuration of the Globally distributed database to be updated. */ + public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails + getUpdateDistributedDatabaseDetails() { + return updateDistributedDatabaseDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails getBody$() { + return updateDistributedDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDistributedDatabaseRequest, + com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** The configuration of the Globally distributed database to be updated. */ + private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails + updateDistributedDatabaseDetails = null; + + /** + * The configuration of the Globally distributed database to be updated. + * + * @param updateDistributedDatabaseDetails the value to set + * @return this builder instance + */ + public Builder updateDistributedDatabaseDetails( + com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails + updateDistributedDatabaseDetails) { + this.updateDistributedDatabaseDetails = updateDistributedDatabaseDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDistributedDatabaseRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + updateDistributedDatabaseDetails(o.getUpdateDistributedDatabaseDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDistributedDatabaseRequest 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 UpdateDistributedDatabaseRequest + */ + public UpdateDistributedDatabaseRequest build() { + UpdateDistributedDatabaseRequest 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.distributeddatabasev26.model.UpdateDistributedDatabaseDetails body) { + updateDistributedDatabaseDetails(body); + return this; + } + + /** + * Build the instance of UpdateDistributedDatabaseRequest 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 UpdateDistributedDatabaseRequest + */ + public UpdateDistributedDatabaseRequest buildWithoutInvocationCallback() { + UpdateDistributedDatabaseRequest request = new UpdateDistributedDatabaseRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.updateDistributedDatabaseDetails = updateDistributedDatabaseDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateDistributedDatabaseRequest(distributedDatabaseId, + // updateDistributedDatabaseDetails, 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() + .distributedDatabaseId(distributedDatabaseId) + .updateDistributedDatabaseDetails(updateDistributedDatabaseDetails) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",updateDistributedDatabaseDetails=") + .append(String.valueOf(this.updateDistributedDatabaseDetails)); + 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 UpdateDistributedDatabaseRequest)) { + return false; + } + + UpdateDistributedDatabaseRequest other = (UpdateDistributedDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.updateDistributedDatabaseDetails, + other.updateDistributedDatabaseDetails) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.updateDistributedDatabaseDetails == null + ? 43 + : this.updateDistributedDatabaseDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java new file mode 100644 index 00000000000..23ba1b351e2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ValidateDistributedAutonomousDatabaseCaBundleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedAutonomousDatabaseCaBundleRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateDistributedAutonomousDatabaseCaBundleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest 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 ValidateDistributedAutonomousDatabaseCaBundleRequest + */ + public ValidateDistributedAutonomousDatabaseCaBundleRequest build() { + ValidateDistributedAutonomousDatabaseCaBundleRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest 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 ValidateDistributedAutonomousDatabaseCaBundleRequest + */ + public ValidateDistributedAutonomousDatabaseCaBundleRequest + buildWithoutInvocationCallback() { + ValidateDistributedAutonomousDatabaseCaBundleRequest request = + new ValidateDistributedAutonomousDatabaseCaBundleRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // ValidateDistributedAutonomousDatabaseCaBundleRequest(distributedAutonomousDatabaseId, + // 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + 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 ValidateDistributedAutonomousDatabaseCaBundleRequest)) { + return false; + } + + ValidateDistributedAutonomousDatabaseCaBundleRequest other = + (ValidateDistributedAutonomousDatabaseCaBundleRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java new file mode 100644 index 00000000000..31ea4d30d09 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java @@ -0,0 +1,331 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ValidateDistributedAutonomousDatabaseNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedAutonomousDatabaseNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId; + + /** Globally distributed autonomous database identifier. */ + public String getDistributedAutonomousDatabaseId() { + return distributedAutonomousDatabaseId; + } + /** Determines the surrogates check. Default is true. */ + private Boolean isSurrogate; + + /** Determines the surrogates check. Default is true. */ + public Boolean getIsSurrogate() { + return isSurrogate; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateDistributedAutonomousDatabaseNetworkRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed autonomous database identifier. */ + private String distributedAutonomousDatabaseId = null; + + /** + * Globally distributed autonomous database identifier. + * + * @param distributedAutonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { + this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + return this; + } + + /** Determines the surrogates check. Default is true. */ + private Boolean isSurrogate = null; + + /** + * Determines the surrogates check. Default is true. + * + * @param isSurrogate the value to set + * @return this builder instance + */ + public Builder isSurrogate(Boolean isSurrogate) { + this.isSurrogate = isSurrogate; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ValidateDistributedAutonomousDatabaseNetworkRequest o) { + distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + isSurrogate(o.getIsSurrogate()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateDistributedAutonomousDatabaseNetworkRequest 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 ValidateDistributedAutonomousDatabaseNetworkRequest + */ + public ValidateDistributedAutonomousDatabaseNetworkRequest build() { + ValidateDistributedAutonomousDatabaseNetworkRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateDistributedAutonomousDatabaseNetworkRequest 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 ValidateDistributedAutonomousDatabaseNetworkRequest + */ + public ValidateDistributedAutonomousDatabaseNetworkRequest + buildWithoutInvocationCallback() { + ValidateDistributedAutonomousDatabaseNetworkRequest request = + new ValidateDistributedAutonomousDatabaseNetworkRequest(); + request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.isSurrogate = isSurrogate; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new + // ValidateDistributedAutonomousDatabaseNetworkRequest(distributedAutonomousDatabaseId, + // isSurrogate, 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() + .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .isSurrogate(isSurrogate) + .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(",distributedAutonomousDatabaseId=") + .append(String.valueOf(this.distributedAutonomousDatabaseId)); + sb.append(",isSurrogate=").append(String.valueOf(this.isSurrogate)); + 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 ValidateDistributedAutonomousDatabaseNetworkRequest)) { + return false; + } + + ValidateDistributedAutonomousDatabaseNetworkRequest other = + (ValidateDistributedAutonomousDatabaseNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + && java.util.Objects.equals(this.isSurrogate, other.isSurrogate) + && 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.distributedAutonomousDatabaseId == null + ? 43 + : this.distributedAutonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.isSurrogate == null ? 43 : this.isSurrogate.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java new file mode 100644 index 00000000000..08785c5367a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java @@ -0,0 +1,326 @@ +/** + * 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.distributeddatabasev26.requests; + +import com.oracle.bmc.distributeddatabasev26.model.*; +/** + * Example: Click here to see how to use + * ValidateDistributedDatabaseNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedDatabaseNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Globally distributed database identifier. */ + private String distributedDatabaseId; + + /** Globally distributed database identifier. */ + public String getDistributedDatabaseId() { + return distributedDatabaseId; + } + /** Determines the surrogates check. Default is true. */ + private Boolean isSurrogate; + + /** Determines the surrogates check. Default is true. */ + public Boolean getIsSurrogate() { + return isSurrogate; + } + /** + * 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateDistributedDatabaseNetworkRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Globally distributed database identifier. */ + private String distributedDatabaseId = null; + + /** + * Globally distributed database identifier. + * + * @param distributedDatabaseId the value to set + * @return this builder instance + */ + public Builder distributedDatabaseId(String distributedDatabaseId) { + this.distributedDatabaseId = distributedDatabaseId; + return this; + } + + /** Determines the surrogates check. Default is true. */ + private Boolean isSurrogate = null; + + /** + * Determines the surrogates check. Default is true. + * + * @param isSurrogate the value to set + * @return this builder instance + */ + public Builder isSurrogate(Boolean isSurrogate) { + this.isSurrogate = isSurrogate; + 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; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ValidateDistributedDatabaseNetworkRequest o) { + distributedDatabaseId(o.getDistributedDatabaseId()); + isSurrogate(o.getIsSurrogate()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateDistributedDatabaseNetworkRequest 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 ValidateDistributedDatabaseNetworkRequest + */ + public ValidateDistributedDatabaseNetworkRequest build() { + ValidateDistributedDatabaseNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateDistributedDatabaseNetworkRequest 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 ValidateDistributedDatabaseNetworkRequest + */ + public ValidateDistributedDatabaseNetworkRequest buildWithoutInvocationCallback() { + ValidateDistributedDatabaseNetworkRequest request = + new ValidateDistributedDatabaseNetworkRequest(); + request.distributedDatabaseId = distributedDatabaseId; + request.isSurrogate = isSurrogate; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ValidateDistributedDatabaseNetworkRequest(distributedDatabaseId, isSurrogate, + // 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() + .distributedDatabaseId(distributedDatabaseId) + .isSurrogate(isSurrogate) + .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(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); + sb.append(",isSurrogate=").append(String.valueOf(this.isSurrogate)); + 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 ValidateDistributedDatabaseNetworkRequest)) { + return false; + } + + ValidateDistributedDatabaseNetworkRequest other = + (ValidateDistributedDatabaseNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.isSurrogate, other.isSurrogate) + && 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.distributedDatabaseId == null + ? 43 + : this.distributedDatabaseId.hashCode()); + result = (result * PRIME) + (this.isSurrogate == null ? 43 : this.isSurrogate.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java new file mode 100644 index 00000000000..0bd5fd0af66 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class AddDistributedAutonomousDatabaseGdsControlNodeResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private AddDistributedAutonomousDatabaseGdsControlNodeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDistributedAutonomousDatabaseGdsControlNodeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AddDistributedAutonomousDatabaseGdsControlNodeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AddDistributedAutonomousDatabaseGdsControlNodeResponse build() { + return new AddDistributedAutonomousDatabaseGdsControlNodeResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeResponse)) { + return false; + } + + AddDistributedAutonomousDatabaseGdsControlNodeResponse other = + (AddDistributedAutonomousDatabaseGdsControlNodeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java new file mode 100644 index 00000000000..a007e84bda7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class AddDistributedDatabaseGdsControlNodeResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private AddDistributedDatabaseGdsControlNodeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDistributedDatabaseGdsControlNodeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AddDistributedDatabaseGdsControlNodeResponse build() { + return new AddDistributedDatabaseGdsControlNodeResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDistributedDatabaseGdsControlNodeResponse)) { + return false; + } + + AddDistributedDatabaseGdsControlNodeResponse other = + (AddDistributedDatabaseGdsControlNodeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java new file mode 100644 index 00000000000..a099bbd7d25 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedAutonomousDatabaseCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ChangeDistributedAutonomousDatabaseCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDistributedAutonomousDatabaseCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDistributedAutonomousDatabaseCompartmentResponse build() { + return new ChangeDistributedAutonomousDatabaseCompartmentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentResponse)) { + return false; + } + + ChangeDistributedAutonomousDatabaseCompartmentResponse other = + (ChangeDistributedAutonomousDatabaseCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java new file mode 100644 index 00000000000..ef7a3c619e9 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedAutonomousDbBackupConfigResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeDistributedAutonomousDbBackupConfigResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDistributedAutonomousDbBackupConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDistributedAutonomousDbBackupConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDistributedAutonomousDbBackupConfigResponse build() { + return new ChangeDistributedAutonomousDbBackupConfigResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigResponse)) { + return false; + } + + ChangeDistributedAutonomousDbBackupConfigResponse other = + (ChangeDistributedAutonomousDbBackupConfigResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java new file mode 100644 index 00000000000..3178873c0e2 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDatabaseCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ChangeDistributedDatabaseCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDistributedDatabaseCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDistributedDatabaseCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDistributedDatabaseCompartmentResponse build() { + return new ChangeDistributedDatabaseCompartmentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabaseCompartmentResponse)) { + return false; + } + + ChangeDistributedDatabaseCompartmentResponse other = + (ChangeDistributedDatabaseCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java new file mode 100644 index 00000000000..77a42cde7ea --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDatabasePrivateEndpointCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeDistributedDatabasePrivateEndpointCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDistributedDatabasePrivateEndpointCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDistributedDatabasePrivateEndpointCompartmentResponse build() { + return new ChangeDistributedDatabasePrivateEndpointCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentResponse)) { + return false; + } + + ChangeDistributedDatabasePrivateEndpointCompartmentResponse other = + (ChangeDistributedDatabasePrivateEndpointCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java new file mode 100644 index 00000000000..0ee4cfab230 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ChangeDistributedDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeDistributedDbBackupConfigResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDistributedDbBackupConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDistributedDbBackupConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDistributedDbBackupConfigResponse build() { + return new ChangeDistributedDbBackupConfigResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDistributedDbBackupConfigResponse)) { + return false; + } + + ChangeDistributedDbBackupConfigResponse other = (ChangeDistributedDbBackupConfigResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java new file mode 100644 index 00000000000..4c9cf788dbe --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + 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 DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. */ + private com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails + distributedAutonomousDatabaseAutoResourceManagementDetails; + + /** + * The returned {@code DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails + getDistributedAutonomousDatabaseAutoResourceManagementDetails() { + return distributedAutonomousDatabaseAutoResourceManagementDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedAutonomousDatabaseAutoResourceManagementDetails" + }) + private ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails + distributedAutonomousDatabaseAutoResourceManagementDetails) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedAutonomousDatabaseAutoResourceManagementDetails = + distributedAutonomousDatabaseAutoResourceManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> { + 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 DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. + */ + private com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails + distributedAutonomousDatabaseAutoResourceManagementDetails; + + /** + * The returned {@code DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. + * + * @param distributedAutonomousDatabaseAutoResourceManagementDetails the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabaseAutoResourceManagementDetails( + com.oracle.bmc.distributeddatabasev26.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails + distributedAutonomousDatabaseAutoResourceManagementDetails) { + this.distributedAutonomousDatabaseAutoResourceManagementDetails = + distributedAutonomousDatabaseAutoResourceManagementDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedAutonomousDatabaseAutoResourceManagementDetails( + o.getDistributedAutonomousDatabaseAutoResourceManagementDetails()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse build() { + return new ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + distributedAutonomousDatabaseAutoResourceManagementDetails); + } + } + + /** + * 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(",distributedAutonomousDatabaseAutoResourceManagementDetails=") + .append(String.valueOf(distributedAutonomousDatabaseAutoResourceManagementDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse other = + (ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse) 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.distributedAutonomousDatabaseAutoResourceManagementDetails, + other.distributedAutonomousDatabaseAutoResourceManagementDetails); + } + + @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.distributedAutonomousDatabaseAutoResourceManagementDetails == null + ? 43 + : this.distributedAutonomousDatabaseAutoResourceManagementDetails + .hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java new file mode 100644 index 00000000000..f340e8f4e5f --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseGsmWalletResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfigureDistributedAutonomousDatabaseGsmWalletResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedAutonomousDatabaseGsmWalletResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmWalletResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedAutonomousDatabaseGsmWalletResponse build() { + return new ConfigureDistributedAutonomousDatabaseGsmWalletResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmWalletResponse)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmWalletResponse other = + (ConfigureDistributedAutonomousDatabaseGsmWalletResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java new file mode 100644 index 00000000000..62deafb90c0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseGsmsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfigureDistributedAutonomousDatabaseGsmsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedAutonomousDatabaseGsmsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedAutonomousDatabaseGsmsResponse build() { + return new ConfigureDistributedAutonomousDatabaseGsmsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmsResponse)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseGsmsResponse other = + (ConfigureDistributedAutonomousDatabaseGsmsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java new file mode 100644 index 00000000000..99cf4573726 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedAutonomousDatabaseShardingResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfigureDistributedAutonomousDatabaseShardingResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedAutonomousDatabaseShardingResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedAutonomousDatabaseShardingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedAutonomousDatabaseShardingResponse build() { + return new ConfigureDistributedAutonomousDatabaseShardingResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedAutonomousDatabaseShardingResponse)) { + return false; + } + + ConfigureDistributedAutonomousDatabaseShardingResponse other = + (ConfigureDistributedAutonomousDatabaseShardingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java new file mode 100644 index 00000000000..28612d14ceb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseAutoResourceManagementResponse + 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 DistributedDatabaseAutoResourceManagementDetails} instance. */ + private com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails + distributedDatabaseAutoResourceManagementDetails; + + /** + * The returned {@code DistributedDatabaseAutoResourceManagementDetails} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails + getDistributedDatabaseAutoResourceManagementDetails() { + return distributedDatabaseAutoResourceManagementDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedDatabaseAutoResourceManagementDetails" + }) + private ConfigureDistributedDatabaseAutoResourceManagementResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails + distributedDatabaseAutoResourceManagementDetails) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabaseAutoResourceManagementDetails = + distributedDatabaseAutoResourceManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedDatabaseAutoResourceManagementResponse> { + 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 DistributedDatabaseAutoResourceManagementDetails} instance. */ + private com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails + distributedDatabaseAutoResourceManagementDetails; + + /** + * The returned {@code DistributedDatabaseAutoResourceManagementDetails} instance. + * + * @param distributedDatabaseAutoResourceManagementDetails the value to set + * @return this builder + */ + public Builder distributedDatabaseAutoResourceManagementDetails( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabaseAutoResourceManagementDetails + distributedDatabaseAutoResourceManagementDetails) { + this.distributedDatabaseAutoResourceManagementDetails = + distributedDatabaseAutoResourceManagementDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabaseAutoResourceManagementDetails( + o.getDistributedDatabaseAutoResourceManagementDetails()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedDatabaseAutoResourceManagementResponse build() { + return new ConfigureDistributedDatabaseAutoResourceManagementResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + distributedDatabaseAutoResourceManagementDetails); + } + } + + /** + * 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(",distributedDatabaseAutoResourceManagementDetails=") + .append(String.valueOf(distributedDatabaseAutoResourceManagementDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedDatabaseAutoResourceManagementResponse)) { + return false; + } + + ConfigureDistributedDatabaseAutoResourceManagementResponse other = + (ConfigureDistributedDatabaseAutoResourceManagementResponse) 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.distributedDatabaseAutoResourceManagementDetails, + other.distributedDatabaseAutoResourceManagementDetails); + } + + @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.distributedDatabaseAutoResourceManagementDetails == null + ? 43 + : this.distributedDatabaseAutoResourceManagementDetails.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java new file mode 100644 index 00000000000..bc21b09b611 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java @@ -0,0 +1,187 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfigureDistributedDatabaseGsmsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedDatabaseGsmsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedDatabaseGsmsResponse build() { + return new ConfigureDistributedDatabaseGsmsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedDatabaseGsmsResponse)) { + return false; + } + + ConfigureDistributedDatabaseGsmsResponse other = + (ConfigureDistributedDatabaseGsmsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java new file mode 100644 index 00000000000..0ae64e392ac --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ConfigureDistributedDatabaseShardingResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfigureDistributedDatabaseShardingResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ConfigureDistributedDatabaseShardingResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfigureDistributedDatabaseShardingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfigureDistributedDatabaseShardingResponse build() { + return new ConfigureDistributedDatabaseShardingResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfigureDistributedDatabaseShardingResponse)) { + return false; + } + + ConfigureDistributedDatabaseShardingResponse other = + (ConfigureDistributedDatabaseShardingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..31d2933aa51 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,271 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedAutonomousDatabaseResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + getDistributedAutonomousDatabase() { + return distributedAutonomousDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "distributedAutonomousDatabase" + }) + private CreateDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDistributedAutonomousDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @param distributedAutonomousDatabase the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDistributedAutonomousDatabaseResponse build() { + return new CreateDistributedAutonomousDatabaseResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + distributedAutonomousDatabase); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",distributedAutonomousDatabase=") + .append(String.valueOf(distributedAutonomousDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedAutonomousDatabaseResponse)) { + return false; + } + + CreateDistributedAutonomousDatabaseResponse other = + (CreateDistributedAutonomousDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.distributedAutonomousDatabase, other.distributedAutonomousDatabase); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.distributedAutonomousDatabase == null + ? 43 + : this.distributedAutonomousDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java new file mode 100644 index 00000000000..05e0db77c20 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java @@ -0,0 +1,272 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedDatabasePrivateEndpointResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + getDistributedDatabasePrivateEndpoint() { + return distributedDatabasePrivateEndpoint; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "distributedDatabasePrivateEndpoint" + }) + private CreateDistributedDatabasePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDistributedDatabasePrivateEndpointResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @param distributedDatabasePrivateEndpoint the value to set + * @return this builder + */ + public Builder distributedDatabasePrivateEndpoint( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDistributedDatabasePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDistributedDatabasePrivateEndpointResponse build() { + return new CreateDistributedDatabasePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + distributedDatabasePrivateEndpoint); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",distributedDatabasePrivateEndpoint=") + .append(String.valueOf(distributedDatabasePrivateEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabasePrivateEndpointResponse)) { + return false; + } + + CreateDistributedDatabasePrivateEndpointResponse other = + (CreateDistributedDatabasePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.distributedDatabasePrivateEndpoint, + other.distributedDatabasePrivateEndpoint); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.distributedDatabasePrivateEndpoint == null + ? 43 + : this.distributedDatabasePrivateEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java new file mode 100644 index 00000000000..7a7628d4ef3 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java @@ -0,0 +1,264 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class CreateDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + getDistributedDatabase() { + return distributedDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "distributedDatabase" + }) + private CreateDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabase = distributedDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDistributedDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @param distributedDatabase the value to set + * @return this builder + */ + public Builder distributedDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + distributedDatabase) { + this.distributedDatabase = distributedDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabase(o.getDistributedDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDistributedDatabaseResponse build() { + return new CreateDistributedDatabaseResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + distributedDatabase); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",distributedDatabase=").append(String.valueOf(distributedDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDistributedDatabaseResponse)) { + return false; + } + + CreateDistributedDatabaseResponse other = (CreateDistributedDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.distributedDatabase, other.distributedDatabase); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.distributedDatabase == null + ? 43 + : this.distributedDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..2afd2b2b5e6 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedAutonomousDatabaseResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDistributedAutonomousDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteDistributedAutonomousDatabaseResponse build() { + return new DeleteDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedAutonomousDatabaseResponse)) { + return false; + } + + DeleteDistributedAutonomousDatabaseResponse other = + (DeleteDistributedAutonomousDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java new file mode 100644 index 00000000000..c6b2fa0fbb9 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedDatabasePrivateEndpointResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteDistributedDatabasePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDistributedDatabasePrivateEndpointResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDistributedDatabasePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteDistributedDatabasePrivateEndpointResponse build() { + return new DeleteDistributedDatabasePrivateEndpointResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedDatabasePrivateEndpointResponse)) { + return false; + } + + DeleteDistributedDatabasePrivateEndpointResponse other = + (DeleteDistributedDatabasePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java new file mode 100644 index 00000000000..91a21ea3297 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class DeleteDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDistributedDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteDistributedDatabaseResponse build() { + return new DeleteDistributedDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDistributedDatabaseResponse)) { + return false; + } + + DeleteDistributedDatabaseResponse other = (DeleteDistributedDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java new file mode 100644 index 00000000000..d6cf8a21b99 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java @@ -0,0 +1,285 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GenerateDistributedAutonomousDatabaseWalletResponse + 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; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** The date and time the wallet was created. */ + private java.util.Date lastModified; + + /** + * The date and time the wallet was created. + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "contentLength", + "lastModified", + "inputStream" + }) + private GenerateDistributedAutonomousDatabaseWalletResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GenerateDistributedAutonomousDatabaseWalletResponse> { + 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; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** The date and time the wallet was created. */ + private java.util.Date lastModified; + + /** + * The date and time the wallet was created. + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateDistributedAutonomousDatabaseWalletResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateDistributedAutonomousDatabaseWalletResponse build() { + return new GenerateDistributedAutonomousDatabaseWalletResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + contentLength, + lastModified, + inputStream); + } + } + + /** + * 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(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletResponse)) { + return false; + } + + GenerateDistributedAutonomousDatabaseWalletResponse other = + (GenerateDistributedAutonomousDatabaseWalletResponse) 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.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @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.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java new file mode 100644 index 00000000000..bb51dbd0a5d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java @@ -0,0 +1,285 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GenerateDistributedDatabaseWalletResponse + 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; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** The date and time the wallet was created. */ + private java.util.Date lastModified; + + /** + * The date and time the wallet was created. + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "contentLength", + "lastModified", + "inputStream" + }) + private GenerateDistributedDatabaseWalletResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GenerateDistributedDatabaseWalletResponse> { + 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; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** The date and time the wallet was created. */ + private java.util.Date lastModified; + + /** + * The date and time the wallet was created. + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateDistributedDatabaseWalletResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateDistributedDatabaseWalletResponse build() { + return new GenerateDistributedDatabaseWalletResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + contentLength, + lastModified, + inputStream); + } + } + + /** + * 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(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateDistributedDatabaseWalletResponse)) { + return false; + } + + GenerateDistributedDatabaseWalletResponse other = + (GenerateDistributedDatabaseWalletResponse) 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.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @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.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java new file mode 100644 index 00000000000..56b163671ae --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseRaftMetricResponse + 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 DistributedAutonomousDatabaseRaftMetric} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric + distributedAutonomousDatabaseRaftMetric; + + /** + * The returned {@code DistributedAutonomousDatabaseRaftMetric} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric + getDistributedAutonomousDatabaseRaftMetric() { + return distributedAutonomousDatabaseRaftMetric; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "distributedAutonomousDatabaseRaftMetric" + }) + private GetDistributedAutonomousDatabaseRaftMetricResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric + distributedAutonomousDatabaseRaftMetric) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.distributedAutonomousDatabaseRaftMetric = distributedAutonomousDatabaseRaftMetric; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedAutonomousDatabaseRaftMetricResponse> { + 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 DistributedAutonomousDatabaseRaftMetric} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric + distributedAutonomousDatabaseRaftMetric; + + /** + * The returned {@code DistributedAutonomousDatabaseRaftMetric} instance. + * + * @param distributedAutonomousDatabaseRaftMetric the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabaseRaftMetric( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric + distributedAutonomousDatabaseRaftMetric) { + this.distributedAutonomousDatabaseRaftMetric = distributedAutonomousDatabaseRaftMetric; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedAutonomousDatabaseRaftMetricResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + distributedAutonomousDatabaseRaftMetric(o.getDistributedAutonomousDatabaseRaftMetric()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedAutonomousDatabaseRaftMetricResponse build() { + return new GetDistributedAutonomousDatabaseRaftMetricResponse( + __httpStatusCode__, + headers, + opcRequestId, + distributedAutonomousDatabaseRaftMetric); + } + } + + /** + * 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(",distributedAutonomousDatabaseRaftMetric=") + .append(String.valueOf(distributedAutonomousDatabaseRaftMetric)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedAutonomousDatabaseRaftMetricResponse)) { + return false; + } + + GetDistributedAutonomousDatabaseRaftMetricResponse other = + (GetDistributedAutonomousDatabaseRaftMetricResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseRaftMetric, + other.distributedAutonomousDatabaseRaftMetric); + } + + @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.distributedAutonomousDatabaseRaftMetric == null + ? 43 + : this.distributedAutonomousDatabaseRaftMetric.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..9dcc4518ae8 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,222 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseResponse 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + getDistributedAutonomousDatabase() { + return distributedAutonomousDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedAutonomousDatabase" + }) + private GetDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedAutonomousDatabaseResponse> { + 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @param distributedAutonomousDatabase the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedAutonomousDatabaseResponse build() { + return new GetDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + } + } + + /** + * 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(",distributedAutonomousDatabase=") + .append(String.valueOf(distributedAutonomousDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedAutonomousDatabaseResponse)) { + return false; + } + + GetDistributedAutonomousDatabaseResponse other = + (GetDistributedAutonomousDatabaseResponse) 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.distributedAutonomousDatabase, other.distributedAutonomousDatabase); + } + + @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.distributedAutonomousDatabase == null + ? 43 + : this.distributedAutonomousDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java new file mode 100644 index 00000000000..b787e5f9fea --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java @@ -0,0 +1,196 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedAutonomousDatabaseRuChangeLogResponse + 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 DistributedAutonomousDatabaseRuChangeLog} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + distributedAutonomousDatabaseRuChangeLog; + + /** + * The returned {@code DistributedAutonomousDatabaseRuChangeLog} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + getDistributedAutonomousDatabaseRuChangeLog() { + return distributedAutonomousDatabaseRuChangeLog; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "distributedAutonomousDatabaseRuChangeLog" + }) + private GetDistributedAutonomousDatabaseRuChangeLogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + distributedAutonomousDatabaseRuChangeLog) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.distributedAutonomousDatabaseRuChangeLog = distributedAutonomousDatabaseRuChangeLog; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedAutonomousDatabaseRuChangeLogResponse> { + 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 DistributedAutonomousDatabaseRuChangeLog} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + distributedAutonomousDatabaseRuChangeLog; + + /** + * The returned {@code DistributedAutonomousDatabaseRuChangeLog} instance. + * + * @param distributedAutonomousDatabaseRuChangeLog the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabaseRuChangeLog( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + distributedAutonomousDatabaseRuChangeLog) { + this.distributedAutonomousDatabaseRuChangeLog = + distributedAutonomousDatabaseRuChangeLog; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedAutonomousDatabaseRuChangeLogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + distributedAutonomousDatabaseRuChangeLog( + o.getDistributedAutonomousDatabaseRuChangeLog()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedAutonomousDatabaseRuChangeLogResponse build() { + return new GetDistributedAutonomousDatabaseRuChangeLogResponse( + __httpStatusCode__, + headers, + opcRequestId, + distributedAutonomousDatabaseRuChangeLog); + } + } + + /** + * 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(",distributedAutonomousDatabaseRuChangeLog=") + .append(String.valueOf(distributedAutonomousDatabaseRuChangeLog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedAutonomousDatabaseRuChangeLogResponse)) { + return false; + } + + GetDistributedAutonomousDatabaseRuChangeLogResponse other = + (GetDistributedAutonomousDatabaseRuChangeLogResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.distributedAutonomousDatabaseRuChangeLog, + other.distributedAutonomousDatabaseRuChangeLog); + } + + @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.distributedAutonomousDatabaseRuChangeLog == null + ? 43 + : this.distributedAutonomousDatabaseRuChangeLog.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java new file mode 100644 index 00000000000..0ce45e1cea7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabasePrivateEndpointResponse + 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + getDistributedDatabasePrivateEndpoint() { + return distributedDatabasePrivateEndpoint; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedDatabasePrivateEndpoint" + }) + private GetDistributedDatabasePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedDatabasePrivateEndpointResponse> { + 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @param distributedDatabasePrivateEndpoint the value to set + * @return this builder + */ + public Builder distributedDatabasePrivateEndpoint( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedDatabasePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedDatabasePrivateEndpointResponse build() { + return new GetDistributedDatabasePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + distributedDatabasePrivateEndpoint); + } + } + + /** + * 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(",distributedDatabasePrivateEndpoint=") + .append(String.valueOf(distributedDatabasePrivateEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedDatabasePrivateEndpointResponse)) { + return false; + } + + GetDistributedDatabasePrivateEndpointResponse other = + (GetDistributedDatabasePrivateEndpointResponse) 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.distributedDatabasePrivateEndpoint, + other.distributedDatabasePrivateEndpoint); + } + + @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.distributedDatabasePrivateEndpoint == null + ? 43 + : this.distributedDatabasePrivateEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java new file mode 100644 index 00000000000..b50ab68f357 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java @@ -0,0 +1,189 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseRaftMetricResponse 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 DistributedDatabaseRaftMetric} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + distributedDatabaseRaftMetric; + + /** + * The returned {@code DistributedDatabaseRaftMetric} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + getDistributedDatabaseRaftMetric() { + return distributedDatabaseRaftMetric; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "distributedDatabaseRaftMetric" + }) + private GetDistributedDatabaseRaftMetricResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + distributedDatabaseRaftMetric) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedDatabaseRaftMetricResponse> { + 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 DistributedDatabaseRaftMetric} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + distributedDatabaseRaftMetric; + + /** + * The returned {@code DistributedDatabaseRaftMetric} instance. + * + * @param distributedDatabaseRaftMetric the value to set + * @return this builder + */ + public Builder distributedDatabaseRaftMetric( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric + distributedDatabaseRaftMetric) { + this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedDatabaseRaftMetricResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + distributedDatabaseRaftMetric(o.getDistributedDatabaseRaftMetric()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedDatabaseRaftMetricResponse build() { + return new GetDistributedDatabaseRaftMetricResponse( + __httpStatusCode__, headers, opcRequestId, distributedDatabaseRaftMetric); + } + } + + /** + * 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(",distributedDatabaseRaftMetric=") + .append(String.valueOf(distributedDatabaseRaftMetric)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedDatabaseRaftMetricResponse)) { + return false; + } + + GetDistributedDatabaseRaftMetricResponse other = + (GetDistributedDatabaseRaftMetricResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.distributedDatabaseRaftMetric, other.distributedDatabaseRaftMetric); + } + + @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.distributedDatabaseRaftMetric == null + ? 43 + : this.distributedDatabaseRaftMetric.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java new file mode 100644 index 00000000000..806e40e7d00 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseResponse 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + getDistributedDatabase() { + return distributedDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedDatabase" + }) + private GetDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabase = distributedDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedDatabaseResponse> { + 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @param distributedDatabase the value to set + * @return this builder + */ + public Builder distributedDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + distributedDatabase) { + this.distributedDatabase = distributedDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabase(o.getDistributedDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedDatabaseResponse build() { + return new GetDistributedDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + } + } + + /** + * 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(",distributedDatabase=").append(String.valueOf(distributedDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedDatabaseResponse)) { + return false; + } + + GetDistributedDatabaseResponse other = (GetDistributedDatabaseResponse) 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.distributedDatabase, other.distributedDatabase); + } + + @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.distributedDatabase == null + ? 43 + : this.distributedDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java new file mode 100644 index 00000000000..eeeddd85ce4 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetDistributedDatabaseRuChangeLogResponse + 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 DistributedDatabaseRuChangeLog} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + distributedDatabaseRuChangeLog; + + /** + * The returned {@code DistributedDatabaseRuChangeLog} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + getDistributedDatabaseRuChangeLog() { + return distributedDatabaseRuChangeLog; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "distributedDatabaseRuChangeLog" + }) + private GetDistributedDatabaseRuChangeLogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + distributedDatabaseRuChangeLog) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.distributedDatabaseRuChangeLog = distributedDatabaseRuChangeLog; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDistributedDatabaseRuChangeLogResponse> { + 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 DistributedDatabaseRuChangeLog} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + distributedDatabaseRuChangeLog; + + /** + * The returned {@code DistributedDatabaseRuChangeLog} instance. + * + * @param distributedDatabaseRuChangeLog the value to set + * @return this builder + */ + public Builder distributedDatabaseRuChangeLog( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + distributedDatabaseRuChangeLog) { + this.distributedDatabaseRuChangeLog = distributedDatabaseRuChangeLog; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDistributedDatabaseRuChangeLogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + distributedDatabaseRuChangeLog(o.getDistributedDatabaseRuChangeLog()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDistributedDatabaseRuChangeLogResponse build() { + return new GetDistributedDatabaseRuChangeLogResponse( + __httpStatusCode__, headers, opcRequestId, distributedDatabaseRuChangeLog); + } + } + + /** + * 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(",distributedDatabaseRuChangeLog=") + .append(String.valueOf(distributedDatabaseRuChangeLog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDistributedDatabaseRuChangeLogResponse)) { + return false; + } + + GetDistributedDatabaseRuChangeLogResponse other = + (GetDistributedDatabaseRuChangeLogResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.distributedDatabaseRuChangeLog, other.distributedDatabaseRuChangeLog); + } + + @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.distributedDatabaseRuChangeLog == null + ? 43 + : this.distributedDatabaseRuChangeLog.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..5c6e606df98 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class GetWorkRequestResponse 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; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest( + com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java new file mode 100644 index 00000000000..fcd6cbec4f8 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedAutonomousDatabasesResponse + 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 DistributedAutonomousDatabaseCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection + distributedAutonomousDatabaseCollection; + + /** + * The returned {@code DistributedAutonomousDatabaseCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection + getDistributedAutonomousDatabaseCollection() { + return distributedAutonomousDatabaseCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "distributedAutonomousDatabaseCollection" + }) + private ListDistributedAutonomousDatabasesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection + distributedAutonomousDatabaseCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDistributedAutonomousDatabasesResponse> { + 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 DistributedAutonomousDatabaseCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection + distributedAutonomousDatabaseCollection; + + /** + * The returned {@code DistributedAutonomousDatabaseCollection} instance. + * + * @param distributedAutonomousDatabaseCollection the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabaseCollection( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection + distributedAutonomousDatabaseCollection) { + this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDistributedAutonomousDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + distributedAutonomousDatabaseCollection(o.getDistributedAutonomousDatabaseCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDistributedAutonomousDatabasesResponse build() { + return new ListDistributedAutonomousDatabasesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + distributedAutonomousDatabaseCollection); + } + } + + /** + * 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(",distributedAutonomousDatabaseCollection=") + .append(String.valueOf(distributedAutonomousDatabaseCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedAutonomousDatabasesResponse)) { + return false; + } + + ListDistributedAutonomousDatabasesResponse other = + (ListDistributedAutonomousDatabasesResponse) 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.distributedAutonomousDatabaseCollection, + other.distributedAutonomousDatabaseCollection); + } + + @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.distributedAutonomousDatabaseCollection == null + ? 43 + : this.distributedAutonomousDatabaseCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java new file mode 100644 index 00000000000..62d25d4ddff --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java @@ -0,0 +1,245 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedDatabasePrivateEndpointsResponse + 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 DistributedDatabasePrivateEndpointCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection + distributedDatabasePrivateEndpointCollection; + + /** + * The returned {@code DistributedDatabasePrivateEndpointCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection + getDistributedDatabasePrivateEndpointCollection() { + return distributedDatabasePrivateEndpointCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "distributedDatabasePrivateEndpointCollection" + }) + private ListDistributedDatabasePrivateEndpointsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection + distributedDatabasePrivateEndpointCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.distributedDatabasePrivateEndpointCollection = + distributedDatabasePrivateEndpointCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDistributedDatabasePrivateEndpointsResponse> { + 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 DistributedDatabasePrivateEndpointCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpointCollection + distributedDatabasePrivateEndpointCollection; + + /** + * The returned {@code DistributedDatabasePrivateEndpointCollection} instance. + * + * @param distributedDatabasePrivateEndpointCollection the value to set + * @return this builder + */ + public Builder distributedDatabasePrivateEndpointCollection( + com.oracle.bmc.distributeddatabasev26.model + .DistributedDatabasePrivateEndpointCollection + distributedDatabasePrivateEndpointCollection) { + this.distributedDatabasePrivateEndpointCollection = + distributedDatabasePrivateEndpointCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + distributedDatabasePrivateEndpointCollection( + o.getDistributedDatabasePrivateEndpointCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDistributedDatabasePrivateEndpointsResponse build() { + return new ListDistributedDatabasePrivateEndpointsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + distributedDatabasePrivateEndpointCollection); + } + } + + /** + * 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(",distributedDatabasePrivateEndpointCollection=") + .append(String.valueOf(distributedDatabasePrivateEndpointCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedDatabasePrivateEndpointsResponse)) { + return false; + } + + ListDistributedDatabasePrivateEndpointsResponse other = + (ListDistributedDatabasePrivateEndpointsResponse) 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.distributedDatabasePrivateEndpointCollection, + other.distributedDatabasePrivateEndpointCollection); + } + + @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.distributedDatabasePrivateEndpointCollection == null + ? 43 + : this.distributedDatabasePrivateEndpointCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java new file mode 100644 index 00000000000..65c96dce99e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListDistributedDatabasesResponse 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 DistributedDatabaseCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + distributedDatabaseCollection; + + /** + * The returned {@code DistributedDatabaseCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + getDistributedDatabaseCollection() { + return distributedDatabaseCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "distributedDatabaseCollection" + }) + private ListDistributedDatabasesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + distributedDatabaseCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.distributedDatabaseCollection = distributedDatabaseCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDistributedDatabasesResponse> { + 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 DistributedDatabaseCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + distributedDatabaseCollection; + + /** + * The returned {@code DistributedDatabaseCollection} instance. + * + * @param distributedDatabaseCollection the value to set + * @return this builder + */ + public Builder distributedDatabaseCollection( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection + distributedDatabaseCollection) { + this.distributedDatabaseCollection = distributedDatabaseCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDistributedDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + distributedDatabaseCollection(o.getDistributedDatabaseCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDistributedDatabasesResponse build() { + return new ListDistributedDatabasesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + distributedDatabaseCollection); + } + } + + /** + * 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(",distributedDatabaseCollection=") + .append(String.valueOf(distributedDatabaseCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDistributedDatabasesResponse)) { + return false; + } + + ListDistributedDatabasesResponse other = (ListDistributedDatabasesResponse) 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.distributedDatabaseCollection, other.distributedDatabaseCollection); + } + + @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.distributedDatabaseCollection == null + ? 43 + : this.distributedDatabaseCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..6377f32236b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..281969ce297 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..47de372e4cb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java new file mode 100644 index 00000000000..e60b455f0ce --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class MoveDistributedAutonomousDatabaseReplicationUnitResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private MoveDistributedAutonomousDatabaseReplicationUnitResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + MoveDistributedAutonomousDatabaseReplicationUnitResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(MoveDistributedAutonomousDatabaseReplicationUnitResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public MoveDistributedAutonomousDatabaseReplicationUnitResponse build() { + return new MoveDistributedAutonomousDatabaseReplicationUnitResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MoveDistributedAutonomousDatabaseReplicationUnitResponse)) { + return false; + } + + MoveDistributedAutonomousDatabaseReplicationUnitResponse other = + (MoveDistributedAutonomousDatabaseReplicationUnitResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java new file mode 100644 index 00000000000..26f1fc6ddd1 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class MoveDistributedDatabaseReplicationUnitResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private MoveDistributedDatabaseReplicationUnitResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + MoveDistributedDatabaseReplicationUnitResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(MoveDistributedDatabaseReplicationUnitResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public MoveDistributedDatabaseReplicationUnitResponse build() { + return new MoveDistributedDatabaseReplicationUnitResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MoveDistributedDatabaseReplicationUnitResponse)) { + return false; + } + + MoveDistributedDatabaseReplicationUnitResponse other = + (MoveDistributedDatabaseReplicationUnitResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..2cb7e37c992 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedAutonomousDatabaseResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private PatchDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + PatchDistributedAutonomousDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PatchDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PatchDistributedAutonomousDatabaseResponse build() { + return new PatchDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchDistributedAutonomousDatabaseResponse)) { + return false; + } + + PatchDistributedAutonomousDatabaseResponse other = + (PatchDistributedAutonomousDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java new file mode 100644 index 00000000000..25859298ffc --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedDatabasePrivateEndpointResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private PatchDistributedDatabasePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + PatchDistributedDatabasePrivateEndpointResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PatchDistributedDatabasePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PatchDistributedDatabasePrivateEndpointResponse build() { + return new PatchDistributedDatabasePrivateEndpointResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchDistributedDatabasePrivateEndpointResponse)) { + return false; + } + + PatchDistributedDatabasePrivateEndpointResponse other = + (PatchDistributedDatabasePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java new file mode 100644 index 00000000000..e9e7d7ddeb9 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class PatchDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private PatchDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + PatchDistributedDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PatchDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PatchDistributedDatabaseResponse build() { + return new PatchDistributedDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchDistributedDatabaseResponse)) { + return false; + } + + PatchDistributedDatabaseResponse other = (PatchDistributedDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java new file mode 100644 index 00000000000..cd415580f1e --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RecreateFailedDistributedAutonomousDatabaseResourceResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RecreateFailedDistributedAutonomousDatabaseResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RecreateFailedDistributedAutonomousDatabaseResourceResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RecreateFailedDistributedAutonomousDatabaseResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RecreateFailedDistributedAutonomousDatabaseResourceResponse build() { + return new RecreateFailedDistributedAutonomousDatabaseResourceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecreateFailedDistributedAutonomousDatabaseResourceResponse)) { + return false; + } + + RecreateFailedDistributedAutonomousDatabaseResourceResponse other = + (RecreateFailedDistributedAutonomousDatabaseResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java new file mode 100644 index 00000000000..f52d49c481d --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RecreateFailedDistributedDatabaseResourceResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RecreateFailedDistributedDatabaseResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RecreateFailedDistributedDatabaseResourceResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RecreateFailedDistributedDatabaseResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RecreateFailedDistributedDatabaseResourceResponse build() { + return new RecreateFailedDistributedDatabaseResourceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecreateFailedDistributedDatabaseResourceResponse)) { + return false; + } + + RecreateFailedDistributedDatabaseResourceResponse other = + (RecreateFailedDistributedDatabaseResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java new file mode 100644 index 00000000000..7264e416e56 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ReinstateProxyInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ReinstateProxyInstanceResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ReinstateProxyInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ReinstateProxyInstanceResponse build() { + return new ReinstateProxyInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReinstateProxyInstanceResponse)) { + return false; + } + + ReinstateProxyInstanceResponse other = (ReinstateProxyInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java new file mode 100644 index 00000000000..b5f85b76635 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RotateDistributedAutonomousDatabasePasswordsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RotateDistributedAutonomousDatabasePasswordsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RotateDistributedAutonomousDatabasePasswordsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RotateDistributedAutonomousDatabasePasswordsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RotateDistributedAutonomousDatabasePasswordsResponse build() { + return new RotateDistributedAutonomousDatabasePasswordsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedAutonomousDatabasePasswordsResponse)) { + return false; + } + + RotateDistributedAutonomousDatabasePasswordsResponse other = + (RotateDistributedAutonomousDatabasePasswordsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java new file mode 100644 index 00000000000..e723addacc0 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class RotateDistributedDatabasePasswordsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RotateDistributedDatabasePasswordsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RotateDistributedDatabasePasswordsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RotateDistributedDatabasePasswordsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RotateDistributedDatabasePasswordsResponse build() { + return new RotateDistributedDatabasePasswordsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RotateDistributedDatabasePasswordsResponse)) { + return false; + } + + RotateDistributedDatabasePasswordsResponse other = + (RotateDistributedDatabasePasswordsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java new file mode 100644 index 00000000000..70947ba61cb --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ScaleDistributedAutonomousDatabaseGsmsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ScaleDistributedAutonomousDatabaseGsmsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ScaleDistributedAutonomousDatabaseGsmsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ScaleDistributedAutonomousDatabaseGsmsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ScaleDistributedAutonomousDatabaseGsmsResponse build() { + return new ScaleDistributedAutonomousDatabaseGsmsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleDistributedAutonomousDatabaseGsmsResponse)) { + return false; + } + + ScaleDistributedAutonomousDatabaseGsmsResponse other = + (ScaleDistributedAutonomousDatabaseGsmsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java new file mode 100644 index 00000000000..dfb55a11f48 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ScaleDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ScaleDistributedDatabaseGsmsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ScaleDistributedDatabaseGsmsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ScaleDistributedDatabaseGsmsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ScaleDistributedDatabaseGsmsResponse build() { + return new ScaleDistributedDatabaseGsmsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleDistributedDatabaseGsmsResponse)) { + return false; + } + + ScaleDistributedDatabaseGsmsResponse other = (ScaleDistributedDatabaseGsmsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..4ae21039b8a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StartDistributedAutonomousDatabaseResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + StartDistributedAutonomousDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StartDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StartDistributedAutonomousDatabaseResponse build() { + return new StartDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDistributedAutonomousDatabaseResponse)) { + return false; + } + + StartDistributedAutonomousDatabaseResponse other = + (StartDistributedAutonomousDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java new file mode 100644 index 00000000000..eaef9faa05a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StartDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + StartDistributedDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StartDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StartDistributedDatabaseResponse build() { + return new StartDistributedDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDistributedDatabaseResponse)) { + return false; + } + + StartDistributedDatabaseResponse other = (StartDistributedDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..b613d802ef5 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StopDistributedAutonomousDatabaseResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + StopDistributedAutonomousDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StopDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StopDistributedAutonomousDatabaseResponse build() { + return new StopDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDistributedAutonomousDatabaseResponse)) { + return false; + } + + StopDistributedAutonomousDatabaseResponse other = + (StopDistributedAutonomousDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java new file mode 100644 index 00000000000..dba957994cd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class StopDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + StopDistributedDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StopDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StopDistributedDatabaseResponse build() { + return new StopDistributedDatabaseResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDistributedDatabaseResponse)) { + return false; + } + + StopDistributedDatabaseResponse other = (StopDistributedDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java new file mode 100644 index 00000000000..cb3f89079d4 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java @@ -0,0 +1,223 @@ +/** + * 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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedAutonomousDatabaseResponse + 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + getDistributedAutonomousDatabase() { + return distributedAutonomousDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedAutonomousDatabase" + }) + private UpdateDistributedAutonomousDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDistributedAutonomousDatabaseResponse> { + 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 DistributedAutonomousDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase; + + /** + * The returned {@code DistributedAutonomousDatabase} instance. + * + * @param distributedAutonomousDatabase the value to set + * @return this builder + */ + public Builder distributedAutonomousDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase + distributedAutonomousDatabase) { + this.distributedAutonomousDatabase = distributedAutonomousDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDistributedAutonomousDatabaseResponse build() { + return new UpdateDistributedAutonomousDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + } + } + + /** + * 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(",distributedAutonomousDatabase=") + .append(String.valueOf(distributedAutonomousDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedAutonomousDatabaseResponse)) { + return false; + } + + UpdateDistributedAutonomousDatabaseResponse other = + (UpdateDistributedAutonomousDatabaseResponse) 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.distributedAutonomousDatabase, other.distributedAutonomousDatabase); + } + + @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.distributedAutonomousDatabase == null + ? 43 + : this.distributedAutonomousDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java new file mode 100644 index 00000000000..ef4e3a7a142 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedDatabasePrivateEndpointResponse + 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + getDistributedDatabasePrivateEndpoint() { + return distributedDatabasePrivateEndpoint; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedDatabasePrivateEndpoint" + }) + private UpdateDistributedDatabasePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDistributedDatabasePrivateEndpointResponse> { + 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 DistributedDatabasePrivateEndpoint} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint; + + /** + * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * + * @param distributedDatabasePrivateEndpoint the value to set + * @return this builder + */ + public Builder distributedDatabasePrivateEndpoint( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint + distributedDatabasePrivateEndpoint) { + this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDistributedDatabasePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDistributedDatabasePrivateEndpointResponse build() { + return new UpdateDistributedDatabasePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + distributedDatabasePrivateEndpoint); + } + } + + /** + * 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(",distributedDatabasePrivateEndpoint=") + .append(String.valueOf(distributedDatabasePrivateEndpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedDatabasePrivateEndpointResponse)) { + return false; + } + + UpdateDistributedDatabasePrivateEndpointResponse other = + (UpdateDistributedDatabasePrivateEndpointResponse) 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.distributedDatabasePrivateEndpoint, + other.distributedDatabasePrivateEndpoint); + } + + @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.distributedDatabasePrivateEndpoint == null + ? 43 + : this.distributedDatabasePrivateEndpoint.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java new file mode 100644 index 00000000000..a2e982eac74 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.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.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class UpdateDistributedDatabaseResponse 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + getDistributedDatabase() { + return distributedDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "distributedDatabase" + }) + private UpdateDistributedDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.distributedDatabase = distributedDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDistributedDatabaseResponse> { + 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 DistributedDatabase} instance. */ + private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + + /** + * The returned {@code DistributedDatabase} instance. + * + * @param distributedDatabase the value to set + * @return this builder + */ + public Builder distributedDatabase( + com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase + distributedDatabase) { + this.distributedDatabase = distributedDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDistributedDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + distributedDatabase(o.getDistributedDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDistributedDatabaseResponse build() { + return new UpdateDistributedDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + } + } + + /** + * 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(",distributedDatabase=").append(String.valueOf(distributedDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDistributedDatabaseResponse)) { + return false; + } + + UpdateDistributedDatabaseResponse other = (UpdateDistributedDatabaseResponse) 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.distributedDatabase, other.distributedDatabase); + } + + @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.distributedDatabase == null + ? 43 + : this.distributedDatabase.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java new file mode 100644 index 00000000000..f4f8972aaa7 --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedAutonomousDatabaseCaBundleResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ValidateDistributedAutonomousDatabaseCaBundleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateDistributedAutonomousDatabaseCaBundleResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ValidateDistributedAutonomousDatabaseCaBundleResponse build() { + return new ValidateDistributedAutonomousDatabaseCaBundleResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDistributedAutonomousDatabaseCaBundleResponse)) { + return false; + } + + ValidateDistributedAutonomousDatabaseCaBundleResponse other = + (ValidateDistributedAutonomousDatabaseCaBundleResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java new file mode 100644 index 00000000000..52eb16308cd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedAutonomousDatabaseNetworkResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ValidateDistributedAutonomousDatabaseNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateDistributedAutonomousDatabaseNetworkResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ValidateDistributedAutonomousDatabaseNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ValidateDistributedAutonomousDatabaseNetworkResponse build() { + return new ValidateDistributedAutonomousDatabaseNetworkResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDistributedAutonomousDatabaseNetworkResponse)) { + return false; + } + + ValidateDistributedAutonomousDatabaseNetworkResponse other = + (ValidateDistributedAutonomousDatabaseNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java new file mode 100644 index 00000000000..b7ccc48af3b --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabasev26.responses; + +import com.oracle.bmc.distributeddatabasev26.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +public class ValidateDistributedDatabaseNetworkResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ValidateDistributedDatabaseNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateDistributedDatabaseNetworkResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ValidateDistributedDatabaseNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ValidateDistributedDatabaseNetworkResponse build() { + return new ValidateDistributedDatabaseNetworkResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateDistributedDatabaseNetworkResponse)) { + return false; + } + + ValidateDistributedDatabaseNetworkResponse other = + (ValidateDistributedDatabaseNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json b/bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json new file mode 100644 index 00000000000..33b233496bd --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json @@ -0,0 +1,2637 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AddDistributedAutonomousDatabaseGdsControlNodeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AddDistributedAutonomousDatabaseGdsControlNodeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutoResourceManagementConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutoResourceManagementConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutoResourceManagementConfigurationDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutoResourceManagementConfigurationDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutoResourceManagementConfigurationDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeDataGuardShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeDataGuardShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeDataGuardShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeDataGuardShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeRaftShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeRaftShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeShardSpaceRaftCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeShardSpaceRaftCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousCompositeShardSpaceRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemDataGuardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemDataGuardDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemDataGuardReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemDataGuardReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemRaftCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemRaftCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousSystemRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousUserShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousUserShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousUserShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.AutonomousUserShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedAutonomousDatabaseCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedAutonomousDatabaseCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedAutonomousDbBackupConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedAutonomousDbBackupConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabasePrivateEndpointCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabasePrivateEndpointCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeDataGuardShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeDataGuardShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeDataGuardShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeDataGuardShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeRaftShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeRaftShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeShardSpaceRaftCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeShardSpaceRaftCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CompositeShardSpaceRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseGsmsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedAutonomousDatabaseGsmsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseAutoResourceManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogDatabaseDetails$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCatalogReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeDataGuardShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeDataGuardShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeRaftShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeRaftShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemDataGuardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemDataGuardDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemDataGuardReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemDataGuardReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemRaftClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemRaftClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousSystemRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousUserShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousUserShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousUserShardSpaceReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateAutonomousUserShardSpaceReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeDataGuardShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeDataGuardShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeDataGuardShardSpaceReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeDataGuardShardSpaceReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeRaftShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeRaftShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeShardSpaceRaftClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeShardSpaceRaftClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateCompositeShardSpaceRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails$DbWorkloadType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseShardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseShardDatabaseDetails$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseDetails$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabasePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabasePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseDetails$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithDbHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithDbHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithExadbXdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithExadbXdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithExadbXsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardDatabaseWithExadbXsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardWithExadbXsNewClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardWithExadbXsNewClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemDataGuardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemDataGuardDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemDataGuardReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemDataGuardReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemRaftClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemRaftClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateSystemRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateUserShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateUserShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateUserShardSpaceReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.CreateUserShardSpaceReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DbStorageVaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DbStorageVaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase$DbWorkloadType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseAutoResourceManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseConnectionString", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseConnectionString$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGdsControlNode", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGdsControlNode$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGdsControlNodeImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGdsControlNodeImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGsm", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGsm$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGsm$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGsmImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseGsmImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLogSummary$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseShardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseShardDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseShardWithDedicatedInfra", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseSummary$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseSummary$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseSummary$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbBackupConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbBackupConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbBackupDestination", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbBackupDestination$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbBackupDestination$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbMetadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbMetadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDbProtectionMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseAutoResourceManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseAutoResourceManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseAutoResourceManagementDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithDbHome", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithDbHome$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithDbHome$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXd", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXd$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXd$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXs", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXs$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXs$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCatalogReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseGdsControlNode", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseGdsControlNode$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseGsm", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseGsm$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseGsm$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLogSummary$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithDbHome", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithDbHome$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithDbHome$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXd", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXd$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXd$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXs", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXs$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXs$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig$AutoBackupWindow", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig$AutoFullBackupWindow", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig$AutoFullBackupDay", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupConfig$BackupDeletionPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupDestination", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupDestination$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbBackupDestination$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbConnectionString", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbConnectionString$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbGdsControlNodeImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbGdsControlNodeImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbGsmImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbGsmImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbMetadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbMetadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbProtectionMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbStorageVault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbStorageVault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbTransportType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbVmCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbVmCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.DistributedDbVmCluster$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedAutonomousDatabaseWalletDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedAutonomousDatabaseWalletDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.MoveDistributedAutonomousDatabaseReplicationUnitDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.MoveDistributedAutonomousDatabaseReplicationUnitDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.MoveDistributedDatabaseReplicationUnitDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.MoveDistributedDatabaseReplicationUnitDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabasePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabasePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchInsertInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchInsertInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchInstruction$Operation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchMergeInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchMergeInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchRemoveInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.PatchRemoveInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedAutonomousDatabasePasswordsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedAutonomousDatabasePasswordsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabasePasswordsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.RotateDistributedDatabasePasswordsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemDataGuardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemDataGuardDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemDataGuardReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemDataGuardReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemRaftCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemRaftCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.SystemRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabasePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabasePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UserShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UserShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UserShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.UserShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.VcnNsgIdsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.VcnNsgIdsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.VmClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.VmClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.VmClusterDetails$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties b/bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties new file mode 100644 index 00000000000..f74355d134a --- /dev/null +++ b/bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties @@ -0,0 +1,9 @@ +# +# 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. +# + +java.client.codegen.version = 2.170 +java.minimum.client.codegen.version.from.client = 2.170 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 51c21665d20..5bd748ebae7 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.0 + 3.94.1 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 0b1c2a340e5..41ef1b9bfca 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index c461cc53a0a..8830dbbfe22 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 4376997f5b0..be5b7586ee8 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index ef59a5e2ec9..259753bd487 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.0 + 3.94.1 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 901617a62c1..025e3dfb30e 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 9012a028073..59fc197a0e3 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index a00966629da..55fc24ed768 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 pom import @@ -817,5 +817,13 @@ com.oracle.oci.sdk oci-java-sdk-datacc + + com.oracle.oci.sdk + oci-java-sdk-ddfs + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabasev26 + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 68f79142813..229a5f690fb 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 1c5d8ea6160..ca3a87c3961 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 59ca932075a..5ee5356c7b2 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 8253a8fe778..13929f190ec 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import @@ -703,5 +703,13 @@ com.oracle.oci.sdk oci-java-sdk-datacc + + com.oracle.oci.sdk + oci-java-sdk-ddfs + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabasev26 + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index d77be60afb2..47e9a2f15ef 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index a0191ef2b02..d68c49e0aa7 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index b8fed27c777..16dbadb9351 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 0bc151b3bfb..fc0e233fb9e 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java index b07e84e638d..2585b923c1c 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java @@ -156,7 +156,7 @@ public Builder unitCount(Integer unitCount) { * H200_X1, H200_X2, H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 * - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - * B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - - * SB_B200_X1 + * SB_B200_X1 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private DedicatedAiCluster.UnitShape unitShape; @@ -179,7 +179,7 @@ public Builder unitCount(Integer unitCount) { * H200_X1, H200_X2, H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 * - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - * B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - - * SB_B200_X1 + * SB_B200_X1 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 * * @param unitShape the value to set * @return this builder @@ -390,7 +390,8 @@ public Integer getUnitCount() { * A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - H200_X1, H200_X2, * H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - * OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - - * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 + * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - COHERE_B300_X1 - + * META_B300_X1 - OAI_B300_X1 */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final DedicatedAiCluster.UnitShape unitShape; @@ -412,7 +413,8 @@ public Integer getUnitCount() { * A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - H200_X1, H200_X2, * H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - * OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - - * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 + * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - COHERE_B300_X1 - + * META_B300_X1 - OAI_B300_X1 * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java index bf242eac23e..6d6a8fb7c8e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java @@ -755,6 +755,9 @@ public enum UnitShape implements com.oracle.bmc.http.internal.BmcEnum { MetaB200X2("META_B200_X2"), MetaB200X4("META_B200_X4"), MetaB200X8("META_B200_X8"), + CohereB300X1("COHERE_B300_X1"), + MetaB300X1("META_B300_X1"), + OaiB300X1("OAI_B300_X1"), LargeCohereV3("LARGE_COHERE_V3"), RerankCohere("RERANK_COHERE"), SmallGenericV1("SMALL_GENERIC_V1"), diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 13d6ca40fdd..0aa79c607b7 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index a3490363bc8..0d2b6c07c64 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 3c5d29d8790..107175646d7 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index dccaa89913b..0db189f73f5 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index becd002cc6a..f00a851a68d 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index f5b80d209d2..6dec2be6731 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 07b7eab0b2c..74d10a50359 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 4550aa44e7b..59fae7f23ef 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 554d08d8fb6..83c1e3316a4 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 8b474295b18..159aa3992f1 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 2949f64e26f..09a9eb994d2 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 7598e157edd..e5f36c6f9d8 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 12eebd090ac..4008085df85 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 7c118df97d5..2ee612cbada 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 5d1cd0db735..480c83ac98e 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 6e3bfed1ee5..c17943778fd 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index aacbf61ea7f..a9ad1d5d871 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 468d957924f..2f7cd98b81e 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index e17430148d3..00254a5bbe8 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 43b6bb6fcbe..6276e08415c 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 2e28fd79ce9..538efa85364 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index f0dcdddbd4e..8b4734bf4e9 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 544f4c76359..4067cca7e98 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 3d9b9bab21a..ba8ca756817 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 35b952c0cb6..1c1e6c26d34 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 0a2f6e51938..1d567ea992e 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 3ebd9dd1596..acfca3d6414 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 7dcd3123ab0..a9f796d6858 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index bc3825a56c3..cf30ad62cf4 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 1d92f67dc93..772ad7be3dd 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 944b49fede2..94baf07d8f4 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 38025c55060..d3014a399d9 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 78cfd440f1e..53bdfed59d3 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index fc4d3c2915a..08d1a9f24d7 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index dac362ae469..eb955cbbf60 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 25e0547a624..df246a36299 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index c4ea689128a..993aa72cf74 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 0668ed102e5..8d3d758adce 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 420b4cf1610..9befa95a13c 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index f948cdfcbdb..9a4bb84d328 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 72b607c9f4f..197d14563fe 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 7ac162c6a3c..79455728607 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ 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 a0fe1fe400c..3c5abaa2d1d 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.0 + 3.94.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.94.0 + 3.94.1 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 4e6f7f0a496..aba5a347165 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.0 + 3.94.1 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.94.0 + 3.94.1 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 3beb3c8e085..609f78d4af0 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.0 + 3.94.1 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java index c39174fa685..9e8fc547924 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java @@ -68,6 +68,16 @@ public interface ObjectStorage extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. Set + * dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack + * endpoint template. Default value is "false" + * + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint + * template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Aborts an in-progress multipart upload and deletes all parts that have been uploaded. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java index 86375e9b7ca..3857de0bf8b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java @@ -65,6 +65,16 @@ public interface ObjectStorageAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. Set + * dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack + * endpoint template. Default value is "false" + * + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint + * template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Aborts an in-progress multipart upload and deletes all parts that have been uploaded. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java index a143aff7640..b0fca0f30cb 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java @@ -33,10 +33,11 @@ public class ObjectStorageAsyncClient extends com.oracle.bmc.http.internal.BaseA com.oracle.bmc.Services.serviceBuilder() .serviceName(ObjectStorageClient.class.getName()) .serviceEndpointPrefix("objectstorage") - .serviceEndpointTemplate("https://objectstorage.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://objectstorage.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") .addServiceEndpointTemplateForRealm( "oc1", - "https://{namespaceName+Dot}objectstorage.{region}.oci.customer-oci.com") + "https://{namespaceName+Dot}objectstorage.{region}.{dualStack?ds.:}oci.customer-oci.com") .endpointServiceName("objectstorage") .build(); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java index 9d048ac769f..7f3c9c6682d 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java @@ -20,10 +20,11 @@ public class ObjectStorageClient extends com.oracle.bmc.http.internal.BaseSyncCl com.oracle.bmc.Services.serviceBuilder() .serviceName(ObjectStorageClient.class.getName()) .serviceEndpointPrefix("objectstorage") - .serviceEndpointTemplate("https://objectstorage.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://objectstorage.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") .addServiceEndpointTemplateForRealm( "oc1", - "https://{namespaceName+Dot}objectstorage.{region}.oci.customer-oci.com") + "https://{namespaceName+Dot}objectstorage.{region}.{dualStack?ds.:}oci.customer-oci.com") .endpointServiceName("objectstorage") .build(); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java index eebaafcd9cf..aa59c8558ef 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java @@ -554,21 +554,27 @@ public Builder autoTiering(AutoTiering autoTiering) { return this; } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. * * @param bucketScope the value to set * @return this builder @@ -1305,10 +1311,14 @@ public AutoTiering getAutoTiering() { } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. */ public enum BucketScope implements com.oracle.bmc.http.internal.BmcEnum { Namespace("NAMESPACE"), @@ -1356,19 +1366,27 @@ public static BucketScope create(String key) { } }; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private final BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. * * @return the value */ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java index b4a528a0a9e..1e540a9e815 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/BucketSummary.java @@ -207,21 +207,27 @@ public Builder definedTags( return this; } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. * * @param bucketScope the value to set * @return this builder @@ -424,19 +430,27 @@ public java.util.Map> getDefinedTags() { } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private final Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. * * @return the value */ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java index 94f2a5d4c10..6fb3fb74db2 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java @@ -339,21 +339,27 @@ public Builder autoTiering(Bucket.AutoTiering autoTiering) { return this; } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. * * @param bucketScope the value to set * @return this builder @@ -797,19 +803,27 @@ public Bucket.AutoTiering getAutoTiering() { } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private final Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. * * @return the value */ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java index d384b3077b1..5ad510a7f5b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java @@ -335,27 +335,35 @@ public Builder autoTiering(Bucket.AutoTiering autoTiering) { return this; } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. BucketScope can only be updated from NAMESPACE to REGION, it - * cannot be updated from REGION to NAMESPACE. Updating bucket scope is possible only if the - * bucket name is valid and there is no existing regionally unique bucket with the same - * name. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. + * + *

BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from + * REGION to NAMESPACE. Updating bucket scope is possible only if the bucket name is valid + * and there is no existing regionally unique bucket with the same name. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as - * NAMESPACE means that the bucket is unique only in the owning namespace/tenancy. Other - * tenancies can have a bucket with same name in their namespace. Bucket scope as REGION - * means that the bucket is regionally unique. No other tenancy can have a bucket with same - * name and scope REGION. BucketScope can only be updated from NAMESPACE to REGION, it - * cannot be updated from REGION to NAMESPACE. Updating bucket scope is possible only if the - * bucket name is valid and there is no existing regionally unique bucket with the same - * name. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket + * scope also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only + * needs to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in + * the region. + * + *

BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from + * REGION to NAMESPACE. Updating bucket scope is possible only if the bucket name is valid + * and there is no existing regionally unique bucket with the same name. * * @param bucketScope the value to set * @return this builder @@ -756,25 +764,35 @@ public Bucket.AutoTiering getAutoTiering() { } /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. - * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to - * NAMESPACE. Updating bucket scope is possible only if the bucket name is valid and there is no - * existing regionally unique bucket with the same name. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. + * + *

BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION + * to NAMESPACE. Updating bucket scope is possible only if the bucket name is valid and there is + * no existing regionally unique bucket with the same name. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketScope") private final Bucket.BucketScope bucketScope; /** - * Scope in which the bucket is unique. Default value is NAMESPACE. Bucket scope as NAMESPACE - * means that the bucket is unique only in the owning namespace/tenancy. Other tenancies can - * have a bucket with same name in their namespace. Bucket scope as REGION means that the bucket - * is regionally unique. No other tenancy can have a bucket with same name and scope REGION. - * BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION to - * NAMESPACE. Updating bucket scope is possible only if the bucket name is valid and there is no - * existing regionally unique bucket with the same name. + * The bucket scope determines weather the bucket name must be unique within the tenancy and + * region (essentially the namespace) or across all tenancies in the region. The bucket scope + * also determines if the bucket supports S3 virtual-hosted style URL's or not. + * + *

Allowed values: NAMESPACE: Only supports path-style bucket access, bucket name only needs + * to be unique within the tenancy and region. REGION: Supports both path-style and + * virtual-hosted URL style access, bucket name needs to be unique across all tenancies in the + * region. + * + *

BucketScope can only be updated from NAMESPACE to REGION, it cannot be updated from REGION + * to NAMESPACE. Updating bucket scope is possible only if the bucket name is valid and there is + * no existing regionally unique bucket with the same name. * * @return the value */ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java index bda3bc51a69..effe128ad1b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java @@ -247,18 +247,20 @@ public String getOpcContentSha384() { /** * The optional Content-Type header that defines the standard MIME type format of the object. * Content type defaults to 'application/octet-stream' if not specified in the PutObject call. - * Specifying values for this header has no effect on Object Storage behavior. Programs that - * read the object determine what to do based on the value provided. For example, you could use - * this header to identify and perform special operations on text only objects. + * In the OCI CLI, you can set this value to 'auto' to have the CLI infer the content type from + * the file name. Specifying values for this header has no effect on Object Storage behavior. + * Programs that read the object determine what to do based on the value provided. For example, + * you could use this header to identify and perform special operations on text only objects. */ private String contentType; /** * The optional Content-Type header that defines the standard MIME type format of the object. * Content type defaults to 'application/octet-stream' if not specified in the PutObject call. - * Specifying values for this header has no effect on Object Storage behavior. Programs that - * read the object determine what to do based on the value provided. For example, you could use - * this header to identify and perform special operations on text only objects. + * In the OCI CLI, you can set this value to 'auto' to have the CLI infer the content type from + * the file name. Specifying values for this header has no effect on Object Storage behavior. + * Programs that read the object determine what to do based on the value provided. For example, + * you could use this header to identify and perform special operations on text only objects. */ public String getContentType() { return contentType; @@ -754,20 +756,22 @@ public Builder opcContentSha384(String opcContentSha384) { /** * The optional Content-Type header that defines the standard MIME type format of the * object. Content type defaults to 'application/octet-stream' if not specified in the - * PutObject call. Specifying values for this header has no effect on Object Storage - * behavior. Programs that read the object determine what to do based on the value provided. - * For example, you could use this header to identify and perform special operations on text - * only objects. + * PutObject call. In the OCI CLI, you can set this value to 'auto' to have the CLI infer + * the content type from the file name. Specifying values for this header has no effect on + * Object Storage behavior. Programs that read the object determine what to do based on the + * value provided. For example, you could use this header to identify and perform special + * operations on text only objects. */ private String contentType = null; /** * The optional Content-Type header that defines the standard MIME type format of the * object. Content type defaults to 'application/octet-stream' if not specified in the - * PutObject call. Specifying values for this header has no effect on Object Storage - * behavior. Programs that read the object determine what to do based on the value provided. - * For example, you could use this header to identify and perform special operations on text - * only objects. + * PutObject call. In the OCI CLI, you can set this value to 'auto' to have the CLI infer + * the content type from the file name. Specifying values for this header has no effect on + * Object Storage behavior. Programs that read the object determine what to do based on the + * value provided. For example, you could use this header to identify and perform special + * operations on text only objects. * * @param contentType the value to set * @return this builder instance diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index a99005bc4ae..2af5146775a 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 13e3958e4a0..17615d91130 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 96a4aa7cc1e..656cba85035 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index b34af85f02c..155cdc53378 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 9945f501545..34281501183 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index b54c06ae6ae..fa7fe5fc08d 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 4ae7260f321..2bad844a49b 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 66862a3a63f..f2955ceae51 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index d79de3e20a1..1b7073399c8 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 88109f0af32..0b136bd3656 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 82fc83ce632..4931a541d27 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 3b3d0596ef7..4683486ea3b 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index f2ff8f5e5be..87535cd2ec5 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 6e1c4a96937..1db42bfd998 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 573e5f88946..a66348ddaf9 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index d293d31c67b..47e4aa5d821 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index ca9d03b1936..53222270bd6 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index cbeccc60d68..936564c8ab5 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index ce5906c51e5..991fb758629 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.94.0 + 3.94.1 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.0 + 3.94.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index da82fbba09d..4574ad4812e 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.94.0 + 3.94.1 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.0 + 3.94.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.0 + 3.94.1 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 84196b504d9..379466b4b70 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.94.0 + 3.94.1 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.0 + 3.94.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.0 + 3.94.1 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 282d2ebaf56..fe0c2492d04 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 8f88428d4ab..743f7e00f4c 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 4e25e26b63a..5ba99b45494 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 5f8d90c335d..18c4ddd438c 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 604d1b55c04..40ec64171bf 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 3f70397cf84..36691abeb19 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 0f1cd6da01b..460484039c6 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 718958363dd..dfd405f250f 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java index 0fa8baa003a..d5bb9a57ebf 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java @@ -637,6 +637,41 @@ GetJobDetailedLogContentResponse getJobDetailedLogContent( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** + * Returns console log entries for the specified work request in JSON format. + * + * @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 + * GetWorkRequestLogEntries API. + */ + GetWorkRequestLogEntriesResponse getWorkRequestLogEntries( + GetWorkRequestLogEntriesRequest request); + + /** + * Returns the raw log file for the specified work request in text format. The file includes a + * maximum of 100,000 log entries. + * + * @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 + * GetWorkRequestLogEntriesContent API. + */ + GetWorkRequestLogEntriesContentResponse getWorkRequestLogEntriesContent( + GetWorkRequestLogEntriesContentRequest request); + /** * Lists configuration source providers according to the specified filter. For more information, * see [Listing Configuration Source diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java index a8a51414689..3d8b1a1a727 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java @@ -624,6 +624,41 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns console log entries for the specified work request in JSON format. + * + * @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 getWorkRequestLogEntries( + GetWorkRequestLogEntriesRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestLogEntriesRequest, GetWorkRequestLogEntriesResponse> + handler); + + /** + * Returns the raw log file for the specified work request in text format. The file includes a + * maximum of 100,000 log entries. + * + * @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 + getWorkRequestLogEntriesContent( + GetWorkRequestLogEntriesContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestLogEntriesContentRequest, + GetWorkRequestLogEntriesContentResponse> + handler); + /** * Lists configuration source providers according to the specified filter. For more information, * see [Listing Configuration Source diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java index c36eef18715..8216e9d1892 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java @@ -1151,6 +1151,85 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } + @Override + public java.util.concurrent.Future getWorkRequestLogEntries( + GetWorkRequestLogEntriesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestLogEntriesRequest, GetWorkRequestLogEntriesResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestLogEntriesResponse::builder) + .logger(LOG, "getWorkRequestLogEntries") + .serviceDetails( + "ResourceManager", + "GetWorkRequestLogEntries", + "https://docs.oracle.com/iaas/api/#/en/resourcemanager/20180917/WorkRequest/GetWorkRequestLogEntries") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestLogEntriesRequest::builder) + .basePath("/20180917") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logEntries") + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam( + "levelGreaterThanOrEqualTo", request.getLevelGreaterThanOrEqualTo()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam( + "timestampGreaterThanOrEqualTo", request.getTimestampGreaterThanOrEqualTo()) + .appendQueryParam( + "timestampLessThanOrEqualTo", request.getTimestampLessThanOrEqualTo()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcemanager.model.LogEntryCollection.class, + GetWorkRequestLogEntriesResponse.Builder::logEntryCollection) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestLogEntriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetWorkRequestLogEntriesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getWorkRequestLogEntriesContent( + GetWorkRequestLogEntriesContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestLogEntriesContentRequest, + GetWorkRequestLogEntriesContentResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestLogEntriesContentResponse::builder) + .logger(LOG, "getWorkRequestLogEntriesContent") + .serviceDetails( + "ResourceManager", + "GetWorkRequestLogEntriesContent", + "https://docs.oracle.com/iaas/api/#/en/resourcemanager/20180917/WorkRequest/GetWorkRequestLogEntriesContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestLogEntriesContentRequest::builder) + .basePath("/20180917") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logEntries") + .appendPathParam("content") + .accept("text/plain; charset=utf-8") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody(String.class, GetWorkRequestLogEntriesContentResponse.Builder::value) + .handleResponseHeaderString( + "opc-request-id", + GetWorkRequestLogEntriesContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listConfigurationSourceProviders( diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java index 20c9e6d614c..7e7108be1d4 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java @@ -1093,6 +1093,79 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .callSync(); } + @Override + public GetWorkRequestLogEntriesResponse getWorkRequestLogEntries( + GetWorkRequestLogEntriesRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestLogEntriesResponse::builder) + .logger(LOG, "getWorkRequestLogEntries") + .serviceDetails( + "ResourceManager", + "GetWorkRequestLogEntries", + "https://docs.oracle.com/iaas/api/#/en/resourcemanager/20180917/WorkRequest/GetWorkRequestLogEntries") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestLogEntriesRequest::builder) + .basePath("/20180917") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logEntries") + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam( + "levelGreaterThanOrEqualTo", request.getLevelGreaterThanOrEqualTo()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam( + "timestampGreaterThanOrEqualTo", request.getTimestampGreaterThanOrEqualTo()) + .appendQueryParam( + "timestampLessThanOrEqualTo", request.getTimestampLessThanOrEqualTo()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcemanager.model.LogEntryCollection.class, + GetWorkRequestLogEntriesResponse.Builder::logEntryCollection) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestLogEntriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetWorkRequestLogEntriesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public GetWorkRequestLogEntriesContentResponse getWorkRequestLogEntriesContent( + GetWorkRequestLogEntriesContentRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestLogEntriesContentResponse::builder) + .logger(LOG, "getWorkRequestLogEntriesContent") + .serviceDetails( + "ResourceManager", + "GetWorkRequestLogEntriesContent", + "https://docs.oracle.com/iaas/api/#/en/resourcemanager/20180917/WorkRequest/GetWorkRequestLogEntriesContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestLogEntriesContentRequest::builder) + .basePath("/20180917") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logEntries") + .appendPathParam("content") + .accept("text/plain; charset=utf-8") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody(String.class, GetWorkRequestLogEntriesContentResponse.Builder::value) + .handleResponseHeaderString( + "opc-request-id", + GetWorkRequestLogEntriesContentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListConfigurationSourceProvidersResponse listConfigurationSourceProviders( ListConfigurationSourceProvidersRequest request) { diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/LogEntryCollection.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/LogEntryCollection.java new file mode 100644 index 00000000000..72d6bfab378 --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/LogEntryCollection.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.resourcemanager.model; + +/** + * Collection of log entries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LogEntryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public LogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Collection of log entries. + * + * @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 LogEntryCollection build() { + LogEntryCollection model = new LogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogEntryCollection 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); + } + + /** Collection of log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Collection of log entries. + * + * @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("LogEntryCollection("); + 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 LogEntryCollection)) { + return false; + } + + LogEntryCollection other = (LogEntryCollection) 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-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesContentRequest.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesContentRequest.java new file mode 100644 index 00000000000..db3ece6955e --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesContentRequest.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.resourcemanager.requests; + +import com.oracle.bmc.resourcemanager.model.*; +/** + * Example: Click here to see how to use + * GetWorkRequestLogEntriesContentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +public class GetWorkRequestLogEntriesContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * 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< + GetWorkRequestLogEntriesContentRequest, 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 + * work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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(GetWorkRequestLogEntriesContentRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestLogEntriesContentRequest 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 GetWorkRequestLogEntriesContentRequest + */ + public GetWorkRequestLogEntriesContentRequest build() { + GetWorkRequestLogEntriesContentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestLogEntriesContentRequest 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 GetWorkRequestLogEntriesContentRequest + */ + public GetWorkRequestLogEntriesContentRequest buildWithoutInvocationCallback() { + GetWorkRequestLogEntriesContentRequest request = + new GetWorkRequestLogEntriesContentRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestLogEntriesContentRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestLogEntriesContentRequest)) { + return false; + } + + GetWorkRequestLogEntriesContentRequest other = (GetWorkRequestLogEntriesContentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesRequest.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesRequest.java new file mode 100644 index 00000000000..eff0905619e --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/requests/GetWorkRequestLogEntriesRequest.java @@ -0,0 +1,533 @@ +/** + * 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.resourcemanager.requests; + +import com.oracle.bmc.resourcemanager.model.*; +/** + * Example: Click here to see how to use + * GetWorkRequestLogEntriesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +public class GetWorkRequestLogEntriesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * 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; + } + /** A filter that returns only logs of a specified type. */ + private java.util.List type; + + /** A filter that returns only logs of a specified type. */ + public java.util.List getType() { + return type; + } + /** A filter that returns only log entries that match a given severity level or greater. */ + private com.oracle.bmc.resourcemanager.model.LogEntry.Level levelGreaterThanOrEqualTo; + + /** A filter that returns only log entries that match a given severity level or greater. */ + public com.oracle.bmc.resourcemanager.model.LogEntry.Level getLevelGreaterThanOrEqualTo() { + return levelGreaterThanOrEqualTo; + } + /** + * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or descending + * ({@code DESC}). + */ + private SortOrder sortOrder; + + /** + * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or descending + * ({@code DESC}). + */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or descending + * ({@code DESC}). + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The number of items returned in a paginated {@code List} call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * The number of items returned in a paginated {@code List} call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * The value of the {@code opc-next-page} response header from the preceding {@code List} call. + * For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * The value of the {@code opc-next-page} response header from the preceding {@code List} call. + * For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * Time stamp specifying the lower time limit for which logs are returned in a query. Format is + * defined by RFC3339. Example: {@code 2020-01-01T12:00:00.000Z} + */ + private java.util.Date timestampGreaterThanOrEqualTo; + + /** + * Time stamp specifying the lower time limit for which logs are returned in a query. Format is + * defined by RFC3339. Example: {@code 2020-01-01T12:00:00.000Z} + */ + public java.util.Date getTimestampGreaterThanOrEqualTo() { + return timestampGreaterThanOrEqualTo; + } + /** + * Time stamp specifying the upper time limit for which logs are returned in a query. Format is + * defined by RFC3339. Example: {@code 2020-02-01T12:00:00.000Z} + */ + private java.util.Date timestampLessThanOrEqualTo; + + /** + * Time stamp specifying the upper time limit for which logs are returned in a query. Format is + * defined by RFC3339. Example: {@code 2020-02-01T12:00:00.000Z} + */ + public java.util.Date getTimestampLessThanOrEqualTo() { + return timestampLessThanOrEqualTo; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestLogEntriesRequest, 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 + * work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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; + } + + /** A filter that returns only logs of a specified type. */ + private java.util.List type = null; + + /** + * A filter that returns only logs of a specified type. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type( + java.util.List type) { + this.type = type; + return this; + } + + /** + * Singular setter. A filter that returns only logs of a specified type. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.resourcemanager.model.LogEntry.Type singularValue) { + return this.type(java.util.Arrays.asList(singularValue)); + } + + /** A filter that returns only log entries that match a given severity level or greater. */ + private com.oracle.bmc.resourcemanager.model.LogEntry.Level levelGreaterThanOrEqualTo = + null; + + /** + * A filter that returns only log entries that match a given severity level or greater. + * + * @param levelGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder levelGreaterThanOrEqualTo( + com.oracle.bmc.resourcemanager.model.LogEntry.Level levelGreaterThanOrEqualTo) { + this.levelGreaterThanOrEqualTo = levelGreaterThanOrEqualTo; + return this; + } + + /** + * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or + * descending ({@code DESC}). + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use when sorting returned resources. Ascending ({@code ASC}) or + * descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The number of items returned in a paginated {@code List} call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * The number of items returned in a paginated {@code List} call. For information about + * pagination, 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; + } + + /** + * The value of the {@code opc-next-page} response header from the preceding {@code List} + * call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * The value of the {@code opc-next-page} response header from the preceding {@code List} + * call. For information about pagination, 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; + } + + /** + * Time stamp specifying the lower time limit for which logs are returned in a query. Format + * is defined by RFC3339. Example: {@code 2020-01-01T12:00:00.000Z} + */ + private java.util.Date timestampGreaterThanOrEqualTo = null; + + /** + * Time stamp specifying the lower time limit for which logs are returned in a query. Format + * is defined by RFC3339. Example: {@code 2020-01-01T12:00:00.000Z} + * + * @param timestampGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timestampGreaterThanOrEqualTo(java.util.Date timestampGreaterThanOrEqualTo) { + this.timestampGreaterThanOrEqualTo = timestampGreaterThanOrEqualTo; + return this; + } + + /** + * Time stamp specifying the upper time limit for which logs are returned in a query. Format + * is defined by RFC3339. Example: {@code 2020-02-01T12:00:00.000Z} + */ + private java.util.Date timestampLessThanOrEqualTo = null; + + /** + * Time stamp specifying the upper time limit for which logs are returned in a query. Format + * is defined by RFC3339. Example: {@code 2020-02-01T12:00:00.000Z} + * + * @param timestampLessThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timestampLessThanOrEqualTo(java.util.Date timestampLessThanOrEqualTo) { + this.timestampLessThanOrEqualTo = timestampLessThanOrEqualTo; + 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(GetWorkRequestLogEntriesRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + type(o.getType()); + levelGreaterThanOrEqualTo(o.getLevelGreaterThanOrEqualTo()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + timestampGreaterThanOrEqualTo(o.getTimestampGreaterThanOrEqualTo()); + timestampLessThanOrEqualTo(o.getTimestampLessThanOrEqualTo()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestLogEntriesRequest 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 GetWorkRequestLogEntriesRequest + */ + public GetWorkRequestLogEntriesRequest build() { + GetWorkRequestLogEntriesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestLogEntriesRequest 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 GetWorkRequestLogEntriesRequest + */ + public GetWorkRequestLogEntriesRequest buildWithoutInvocationCallback() { + GetWorkRequestLogEntriesRequest request = new GetWorkRequestLogEntriesRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.type = type; + request.levelGreaterThanOrEqualTo = levelGreaterThanOrEqualTo; + request.sortOrder = sortOrder; + request.limit = limit; + request.page = page; + request.timestampGreaterThanOrEqualTo = timestampGreaterThanOrEqualTo; + request.timestampLessThanOrEqualTo = timestampLessThanOrEqualTo; + return request; + // new GetWorkRequestLogEntriesRequest(workRequestId, opcRequestId, type, + // levelGreaterThanOrEqualTo, sortOrder, limit, page, timestampGreaterThanOrEqualTo, + // timestampLessThanOrEqualTo); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .type(type) + .levelGreaterThanOrEqualTo(levelGreaterThanOrEqualTo) + .sortOrder(sortOrder) + .limit(limit) + .page(page) + .timestampGreaterThanOrEqualTo(timestampGreaterThanOrEqualTo) + .timestampLessThanOrEqualTo(timestampLessThanOrEqualTo); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",levelGreaterThanOrEqualTo=") + .append(String.valueOf(this.levelGreaterThanOrEqualTo)); + 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(",timestampGreaterThanOrEqualTo=") + .append(String.valueOf(this.timestampGreaterThanOrEqualTo)); + sb.append(",timestampLessThanOrEqualTo=") + .append(String.valueOf(this.timestampLessThanOrEqualTo)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestLogEntriesRequest)) { + return false; + } + + GetWorkRequestLogEntriesRequest other = (GetWorkRequestLogEntriesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals( + this.levelGreaterThanOrEqualTo, other.levelGreaterThanOrEqualTo) + && 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.timestampGreaterThanOrEqualTo, other.timestampGreaterThanOrEqualTo) + && java.util.Objects.equals( + this.timestampLessThanOrEqualTo, other.timestampLessThanOrEqualTo); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.levelGreaterThanOrEqualTo == null + ? 43 + : this.levelGreaterThanOrEqualTo.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.timestampGreaterThanOrEqualTo == null + ? 43 + : this.timestampGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timestampLessThanOrEqualTo == null + ? 43 + : this.timestampLessThanOrEqualTo.hashCode()); + return result; + } +} diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesContentResponse.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesContentResponse.java new file mode 100644 index 00000000000..a861c827340 --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesContentResponse.java @@ -0,0 +1,163 @@ +/** + * 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.resourcemanager.responses; + +import com.oracle.bmc.resourcemanager.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +public class GetWorkRequestLogEntriesContentResponse extends com.oracle.bmc.responses.BmcResponse { + /** Unique identifier for the request */ + private String opcRequestId; + + /** + * Unique identifier for the request + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code String} instance. */ + private String value; + + /** + * The returned {@code String} instance. + * + * @return the value + */ + public String getValue() { + return value; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId", "value"}) + private GetWorkRequestLogEntriesContentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String value) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.value = value; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetWorkRequestLogEntriesContentResponse> { + 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 identifier for the request */ + private String opcRequestId; + + /** + * Unique identifier for the request + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code String} instance. */ + private String value; + + /** + * The returned {@code String} instance. + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestLogEntriesContentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + value(o.getValue()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestLogEntriesContentResponse build() { + return new GetWorkRequestLogEntriesContentResponse( + __httpStatusCode__, headers, opcRequestId, value); + } + } + + /** + * 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(",value=").append(String.valueOf(value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestLogEntriesContentResponse)) { + return false; + } + + GetWorkRequestLogEntriesContentResponse other = (GetWorkRequestLogEntriesContentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.value, other.value); + } + + @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.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesResponse.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesResponse.java new file mode 100644 index 00000000000..7c4aae8bcb6 --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/responses/GetWorkRequestLogEntriesResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcemanager.responses; + +import com.oracle.bmc.resourcemanager.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +public class GetWorkRequestLogEntriesResponse extends com.oracle.bmc.responses.BmcResponse { + /** Unique identifier for the request. */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Retrieves the next page of paginated list items. If the {@code opc-next-page} header appears + * in the response, additional pages of results remain. To receive the next page, include the + * header value in the {@code page} param. If the {@code opc-next-page} header does not appear + * in the response, there are no more list items to get. For more information about list + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * Retrieves the next page of paginated list items. If the {@code opc-next-page} header appears + * in the response, additional pages of results remain. To receive the next page, include the + * header value in the {@code page} param. If the {@code opc-next-page} header does not appear + * in the response, there are no more list items to get. For more information about list + * pagination, 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 LogEntryCollection} instance. */ + private com.oracle.bmc.resourcemanager.model.LogEntryCollection logEntryCollection; + + /** + * The returned {@code LogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcemanager.model.LogEntryCollection getLogEntryCollection() { + return logEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "logEntryCollection" + }) + private GetWorkRequestLogEntriesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.resourcemanager.model.LogEntryCollection logEntryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.logEntryCollection = logEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetWorkRequestLogEntriesResponse> { + 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 identifier for the request. */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Retrieves the next page of paginated list items. If the {@code opc-next-page} header + * appears in the response, additional pages of results remain. To receive the next page, + * include the header value in the {@code page} param. If the {@code opc-next-page} header + * does not appear in the response, there are no more list items to get. For more + * information about list pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * Retrieves the next page of paginated list items. If the {@code opc-next-page} header + * appears in the response, additional pages of results remain. To receive the next page, + * include the header value in the {@code page} param. If the {@code opc-next-page} header + * does not appear in the response, there are no more list items to get. For more + * information about list pagination, 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 LogEntryCollection} instance. */ + private com.oracle.bmc.resourcemanager.model.LogEntryCollection logEntryCollection; + + /** + * The returned {@code LogEntryCollection} instance. + * + * @param logEntryCollection the value to set + * @return this builder + */ + public Builder logEntryCollection( + com.oracle.bmc.resourcemanager.model.LogEntryCollection logEntryCollection) { + this.logEntryCollection = logEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestLogEntriesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + logEntryCollection(o.getLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestLogEntriesResponse build() { + return new GetWorkRequestLogEntriesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, logEntryCollection); + } + } + + /** + * 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(",logEntryCollection=").append(String.valueOf(logEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestLogEntriesResponse)) { + return false; + } + + GetWorkRequestLogEntriesResponse other = (GetWorkRequestLogEntriesResponse) 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.logEntryCollection, other.logEntryCollection); + } + + @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.logEntryCollection == null + ? 43 + : this.logEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcemanager/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcemanager/reflect-config.json b/bmc-resourcemanager/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcemanager/reflect-config.json index b5396896dab..40a8b999548 100644 --- a/bmc-resourcemanager/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcemanager/reflect-config.json +++ b/bmc-resourcemanager/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcemanager/reflect-config.json @@ -1051,6 +1051,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcemanager.model.LogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcemanager.model.LogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.resourcemanager.model.ObjectStorageConfigSource", diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index a7271867145..7ae04d587fa 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java index 7f3a742393c..e13aa3bffdf 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java @@ -34,6 +34,7 @@ public final class CreateScheduleDetails "resources", "timeStarts", "timeEnds", + "localTimeZone", "freeformTags", "definedTags" }) @@ -48,6 +49,7 @@ public CreateScheduleDetails( java.util.List resources, java.util.Date timeStarts, java.util.Date timeEnds, + String localTimeZone, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -61,6 +63,7 @@ public CreateScheduleDetails( this.resources = resources; this.timeStarts = timeStarts; this.timeEnds = timeEnds; + this.localTimeZone = localTimeZone; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -251,6 +254,25 @@ public Builder timeEnds(java.util.Date timeEnds) { this.__explicitlySet__.add("timeEnds"); return this; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + * + * @param localTimeZone the value to set + * @return this builder + */ + public Builder localTimeZone(String localTimeZone) { + this.localTimeZone = localTimeZone; + this.__explicitlySet__.add("localTimeZone"); + return this; + } /** * These are free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource @@ -319,6 +341,7 @@ public CreateScheduleDetails build() { this.resources, this.timeStarts, this.timeEnds, + this.localTimeZone, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -359,6 +382,9 @@ public Builder copy(CreateScheduleDetails model) { if (model.wasPropertyExplicitlySet("timeEnds")) { this.timeEnds(model.getTimeEnds()); } + if (model.wasPropertyExplicitlySet("localTimeZone")) { + this.localTimeZone(model.getLocalTimeZone()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -609,6 +635,23 @@ public java.util.Date getTimeEnds() { return timeEnds; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private final String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + * + * @return the value + */ + public String getLocalTimeZone() { + return localTimeZone; + } + /** * These are free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource @@ -680,6 +723,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", localTimeZone=").append(String.valueOf(this.localTimeZone)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -706,6 +750,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals(this.timeStarts, other.timeStarts) && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.localTimeZone, other.localTimeZone) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -733,6 +778,9 @@ public int hashCode() { result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.hashCode()); + result = + (result * PRIME) + + (this.localTimeZone == null ? 43 : this.localTimeZone.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java index b9ede49455c..d1339a3e112 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java @@ -41,6 +41,7 @@ public final class Schedule extends com.oracle.bmc.http.client.internal.Explicit "resources", "timeStarts", "timeEnds", + "localTimeZone", "timeCreated", "timeUpdated", "timeLastRun", @@ -63,6 +64,7 @@ public Schedule( java.util.List resources, java.util.Date timeStarts, java.util.Date timeEnds, + String localTimeZone, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeLastRun, @@ -84,6 +86,7 @@ public Schedule( this.resources = resources; this.timeStarts = timeStarts; this.timeEnds = timeEnds; + this.localTimeZone = localTimeZone; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeLastRun = timeLastRun; @@ -300,6 +303,25 @@ public Builder timeEnds(java.util.Date timeEnds) { this.__explicitlySet__.add("timeEnds"); return this; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + * + * @param localTimeZone the value to set + * @return this builder + */ + public Builder localTimeZone(String localTimeZone) { + this.localTimeZone = localTimeZone; + this.__explicitlySet__.add("localTimeZone"); + return this; + } /** * This is the date and time the schedule was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -514,6 +536,7 @@ public Schedule build() { this.resources, this.timeStarts, this.timeEnds, + this.localTimeZone, this.timeCreated, this.timeUpdated, this.timeLastRun, @@ -564,6 +587,9 @@ public Builder copy(Schedule model) { if (model.wasPropertyExplicitlySet("timeEnds")) { this.timeEnds(model.getTimeEnds()); } + if (model.wasPropertyExplicitlySet("localTimeZone")) { + this.localTimeZone(model.getLocalTimeZone()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -877,6 +903,23 @@ public java.util.Date getTimeEnds() { return timeEnds; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private final String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + * + * @return the value + */ + public String getLocalTimeZone() { + return localTimeZone; + } + /** * This is the date and time the schedule was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -1129,6 +1172,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", localTimeZone=").append(String.valueOf(this.localTimeZone)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeLastRun=").append(String.valueOf(this.timeLastRun)); @@ -1163,6 +1207,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals(this.timeStarts, other.timeStarts) && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.localTimeZone, other.localTimeZone) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeLastRun, other.timeLastRun) @@ -1198,6 +1243,9 @@ public int hashCode() { result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.hashCode()); + result = + (result * PRIME) + + (this.localTimeZone == null ? 43 : this.localTimeZone.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.timeLastRun == null ? 43 : this.timeLastRun.hashCode()); diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java index b07599c0071..a2e5cd41e75 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java @@ -34,6 +34,7 @@ public final class ScheduleSummary "resources", "timeStarts", "timeEnds", + "localTimeZone", "timeCreated", "timeUpdated", "timeLastRun", @@ -56,6 +57,7 @@ public ScheduleSummary( java.util.List resources, java.util.Date timeStarts, java.util.Date timeEnds, + String localTimeZone, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeLastRun, @@ -77,6 +79,7 @@ public ScheduleSummary( this.resources = resources; this.timeStarts = timeStarts; this.timeEnds = timeEnds; + this.localTimeZone = localTimeZone; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeLastRun = timeLastRun; @@ -293,6 +296,25 @@ public Builder timeEnds(java.util.Date timeEnds) { this.__explicitlySet__.add("timeEnds"); return this; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + * + * @param localTimeZone the value to set + * @return this builder + */ + public Builder localTimeZone(String localTimeZone) { + this.localTimeZone = localTimeZone; + this.__explicitlySet__.add("localTimeZone"); + return this; + } /** * This is the date and time the schedule was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -507,6 +529,7 @@ public ScheduleSummary build() { this.resources, this.timeStarts, this.timeEnds, + this.localTimeZone, this.timeCreated, this.timeUpdated, this.timeLastRun, @@ -557,6 +580,9 @@ public Builder copy(ScheduleSummary model) { if (model.wasPropertyExplicitlySet("timeEnds")) { this.timeEnds(model.getTimeEnds()); } + if (model.wasPropertyExplicitlySet("localTimeZone")) { + this.localTimeZone(model.getLocalTimeZone()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -870,6 +896,23 @@ public java.util.Date getTimeEnds() { return timeEnds; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private final String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + * + * @return the value + */ + public String getLocalTimeZone() { + return localTimeZone; + } + /** * This is the date and time the schedule was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -1071,6 +1114,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", localTimeZone=").append(String.valueOf(this.localTimeZone)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeLastRun=").append(String.valueOf(this.timeLastRun)); @@ -1105,6 +1149,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals(this.timeStarts, other.timeStarts) && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.localTimeZone, other.localTimeZone) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeLastRun, other.timeLastRun) @@ -1140,6 +1185,9 @@ public int hashCode() { result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.hashCode()); + result = + (result * PRIME) + + (this.localTimeZone == null ? 43 : this.localTimeZone.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.timeLastRun == null ? 43 : this.timeLastRun.hashCode()); diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java index 9a1cb513a5a..f86012826fa 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java @@ -33,6 +33,7 @@ public final class UpdateScheduleDetails "resources", "timeStarts", "timeEnds", + "localTimeZone", "freeformTags", "definedTags" }) @@ -46,6 +47,7 @@ public UpdateScheduleDetails( java.util.List resources, java.util.Date timeStarts, java.util.Date timeEnds, + String localTimeZone, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -58,6 +60,7 @@ public UpdateScheduleDetails( this.resources = resources; this.timeStarts = timeStarts; this.timeEnds = timeEnds; + this.localTimeZone = localTimeZone; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -229,6 +232,25 @@ public Builder timeEnds(java.util.Date timeEnds) { this.__explicitlySet__.add("timeEnds"); return this; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This + * determines the timezone context for evaluating the recurrence expression. + * + * @param localTimeZone the value to set + * @return this builder + */ + public Builder localTimeZone(String localTimeZone) { + this.localTimeZone = localTimeZone; + this.__explicitlySet__.add("localTimeZone"); + return this; + } /** * These are free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource @@ -296,6 +318,7 @@ public UpdateScheduleDetails build() { this.resources, this.timeStarts, this.timeEnds, + this.localTimeZone, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -333,6 +356,9 @@ public Builder copy(UpdateScheduleDetails model) { if (model.wasPropertyExplicitlySet("timeEnds")) { this.timeEnds(model.getTimeEnds()); } + if (model.wasPropertyExplicitlySet("localTimeZone")) { + this.localTimeZone(model.getLocalTimeZone()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -566,6 +592,23 @@ public java.util.Date getTimeEnds() { return timeEnds; } + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + */ + @com.fasterxml.jackson.annotation.JsonProperty("localTimeZone") + private final String localTimeZone; + + /** + * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines + * the timezone context for evaluating the recurrence expression. + * + * @return the value + */ + public String getLocalTimeZone() { + return localTimeZone; + } + /** * These are free-form tags for this resource. Each tag is a simple key-value pair with no * predefined name, type, or namespace. For more information, see [Resource @@ -636,6 +679,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", localTimeZone=").append(String.valueOf(this.localTimeZone)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -661,6 +705,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals(this.timeStarts, other.timeStarts) && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.localTimeZone, other.localTimeZone) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -685,6 +730,9 @@ public int hashCode() { result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.hashCode()); + result = + (result * PRIME) + + (this.localTimeZone == null ? 43 : this.localTimeZone.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index f11841bd016..cd4322ef945 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 423c5ab4147..1c7b1f446c5 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 9d32377a58e..9c8d350fe3e 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 80f5ddfaa1e..2912c40e233 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 0870461adbf..3d8079769a5 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index f7f3fb02be8..4ee04a65218 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 16ed4dc426e..09622355913 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 4da3afe0e84..d896187ed35 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index adaccd75a99..3ebb6eab5f1 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index d5a6405a483..7aec1d99f15 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index b4753243ef7..f4cdc17f206 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 473b4a60640..a731bba59f7 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 82722e20d99..80c7acb569c 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 34c4e379e8e..bc5fcec9849 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index a8d19559647..46e5f071ecd 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index b20f4670a13..435688feb74 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 3c8b1bd4a99..1730ca69cf7 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index d64fc28e70d..8413943747c 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 11a20cd3793..7708637c323 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index a45d2e4aa7e..65f046c995b 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index b4f7ee8d7f2..515fb8615bf 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index ac9143cd52b..f89d3d3deae 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index ad010619c33..f8498011f81 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 7f2e267dc37..5656ad252df 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 12c7d50d300..35dd855b709 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 032ee81941f..9775ba03473 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 993d7f257a3..ee31b424104 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.0 + 3.94.1 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9f1e2471b52..1bf3c52b39e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.94.0 + 3.94.1 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -680,6 +680,8 @@ bmc-databasetoolsruntime bmc-costad bmc-datacc + bmc-ddfs + bmc-distributeddatabasev26 bmc-containerengine bmc-keymanagement bmc-resourcesearch